(Auto TAB Off)                  0001                              Mnemonic:                                                                            (Auto TAB Off)                  0002                                                                                                                   (Auto TAB Off)                  0003                                (Auto TAB Off)                                                                     (Auto TAB Off)                  0004                                                                                                                   (Auto TAB Off)                  0005                              Hex equivalent:                                                                      (Auto TAB Off)                  0006                                                                                                                   (Auto TAB Off)                  0007                                "@0E0004@"                                                                         (Auto TAB Off)                  0008                                                                                                                   (Auto TAB Off)                  0009                              Discussion:                                                                          (Auto TAB Off)                  0010                                                                                                                   (Auto TAB Off)                  0011                                This mnemonic turns off the "automatic tab mode."                                  (Auto TAB Off)                  0012                                                                                                                   (Auto TAB Off)                  0013                                Also see <(Auto TAB On)>.                                                          (Auto TAB Off)                  0014                                                                                                                   (Auto TAB Off)                  0015                              Example:                                                                             (Auto TAB Off)                  0016                                                                                                                   (Auto TAB Off)                  0017                                a. 100 FORMAT (Auto TAB Off)                                                       (Auto TAB Off)                  0018                                   .                                                                               (Auto TAB Off)                  0019                                   PRINT (0,100)                                                                   (Auto TAB Off)                  0020                                                                                                                   (Auto TAB Off)                  0021                                b. PRINT (0) (Auto TAB Off)                                                        (Auto TAB On)                   0001                              Mnemonic:                                                                            (Auto TAB On)                   0002                                                                                                                   (Auto TAB On)                   0003                                (Auto TAB On)                                                                      (Auto TAB On)                   0004                                                                                                                   (Auto TAB On)                   0005                              Hex equivalent:                                                                      (Auto TAB On)                   0006                                                                                                                   (Auto TAB On)                   0007                                "@0E0003@"                                                                         (Auto TAB On)                   0008                                                                                                                   (Auto TAB On)                   0009                              Discussion:                                                                          (Auto TAB On)                   0010                                                                                                                   (Auto TAB On)                   0011                                This mnemonic turns on the "automatic tab mode." In this mode,                     (Auto TAB On)                   0012                                the cursor automatically advances to the next input field when it                  (Auto TAB On)                   0013                                reaches the last character of the current input field.                             (Auto TAB On)                   0014                                                                                                                   (Auto TAB On)                   0015                                Also see <(Auto TAB Off)>.                                                         (Auto TAB On)                   0016                                                                                                                   (Auto TAB On)                   0017                              Example:                                                                             (Auto TAB On)                   0018                                                                                                                   (Auto TAB On)                   0019                                a. 100 FORMAT (Auto TAB On)                                                        (Auto TAB On)                   0020                                   .                                                                               (Auto TAB On)                   0021                                   PRINT (0,100)                                                                   (Auto TAB On)                   0022                                                                                                                   (Auto TAB On)                   0023                                b. PRINT (0) (Auto TAB On)                                                         (BF)                            0001  Blank fill                  Mnemonic:                                                                            (BF)                            0002  Blank fill                                                                                                       (BF)                            0003  Blank fill                    (BF)                                                                               (BF)                            0004  Blank fill                                                                                                       (BF)                            0005  Blank fill                  Hex equivalent:                                                                      (BF)                            0006  Blank fill                                                                                                       (BF)                            0007  Blank fill                    "@0406@"                                                                           (BF)                            0008  Blank fill                                                                                                       (BF)                            0009  Blank fill                  Discussion:                                                                          (BF)                            0010  Blank fill                                                                                                       (BF)                            0011  Blank fill                    The (BF) control code replaces all characters from the cursor                      (BF)                            0012  Blank fill                    position to the end of the line with blanks. The current mode --                   (BF)                            0013  Blank fill                    foreground, background, or invisible (suppressed background) --                    (BF)                            0014  Blank fill                    determines the type of blank. When this control is complete, the                   (BF)                            0015  Blank fill                    cursor is positioned at the beginning of the next line (or the                     (BF)                            0016  Blank fill                    next available foreground position on the screen).                                 (BF)                            0017  Blank fill                                                                                                       (BF)                            0018  Blank fill                    This control code may also include a positioning statement to                      (BF)                            0019  Blank fill                    start the fill operation from a specific point on the screen.                      (BF)                            0020  Blank fill                                                                                                       (BF)                            0021  Blank fill                  Example:                                                                             (BF)                            0022  Blank fill                                                                                                       (BF)                            0023  Blank fill                    a. 100 FORMAT (SB);(BF),@(10,0)                                                    (BF)                            0024  Blank fill                       .                                                                               (BF)                            0025  Blank fill                       PRINT (0,100)                                                                   (BF)                            0026  Blank fill                                                                                                       (BF)                            0027  Blank fill                    b. PRINT (0) (SB);(BF),@(10,0)                                                     (BF)                            0028  Blank fill                                                                                                       (BF)                            0029  Blank fill                    This example sets the video mode to background (SB), and then                      (BF)                            0030  Blank fill                    blank fills the top row of the screen (i.e., row 0) from position                  (BF)                            0031  Blank fill                    10 to the end of the line.                                                         (BIOS Mouse On)                 0001                              Mnemonic:                                                                            (BIOS Mouse On)                 0002                                                                                                                   (BIOS Mouse On)                 0003                                (BIOS Mouse On)                                                                    (BIOS Mouse On)                 0004                                                                                                                   (BIOS Mouse On)                 0005                              Description:                                                                         (BIOS Mouse On)                 0006                                                                                                                   (BIOS Mouse On)                 0007                                This control open the BIOS mouse driver (if possible).                             (BIOS Mouse On)                 0008                                                                                                                   (BIOS Mouse On)                 0009                                Also see <(Mouse On)> and <(Enhanced Mouse On)>.                                   (BIOS Mouse On)                 0010                                                                                                                   (BIOS Mouse On)                 0011                              Example:                                                                             (BIOS Mouse On)                 0012                                                                                                                   (BIOS Mouse On)                 0013                                                                                                                   (BIOS Mouse On)                 0014                                a. 100 FORMAT (BIOS Mouse On)                                                      (BIOS Mouse On)                 0015                                   .                                                                               (BIOS Mouse On)                 0016                                   PRINT (0,100                                                                    (BIOS Mouse On)                 0017                                                                                                                   (BIOS Mouse On)                 0018                                b. PRINT (0) (BIOS Mouse On)                                                       (BM)                            0001  Blind Mode                  Mnemonic:                                                                            (BM)                            0002  Blind Mode                                                                                                       (BM)                            0003  Blind Mode                    (BM)                                                                               (BM)                            0004  Blind Mode                                                                                                       (BM)                            0005  Blind Mode                  Hex equivalent:                                                                      (BM)                            0006  Blind Mode                                                                                                       (BM)                            0007  Blind Mode                    "@0405@"                                                                           (BM)                            0008  Blind Mode                                                                                                       (BM)                            0009  Blind Mode                  Discussion:                                                                          (BM)                            0010  Blind Mode                                                                                                       (BM)                            0011  Blind Mode                    The (BM) control code establishes "blind mode" -- an attribute                     (BM)                            0012  Blind Mode                    where characters entered from the keyboard do not appear on the                    (BM)                            0013  Blind Mode                    screen. Up to 32 characters can be entered with the video device                   (BM)                            0014  Blind Mode                    in blind mode. This control code is typically used for entering                    (BM)                            0015  Blind Mode                    invisible passwords.                                                               (BM)                            0016  Blind Mode                                                                                                       (BM)                            0017  Blind Mode                  Example:                                                                             (BM)                            0018  Blind Mode                                                                                                       (BM)                            0019  Blind Mode                    a. LENGTH 32 & LOCAL PASSWORD$                                                     (BM)                            0020  Blind Mode                       100 FORMAT (BM)                                                                 (BM)                            0021  Blind Mode                       .                                                                               (BM)                            0022  Blind Mode                       PRINT (0,100)                                                                   (BM)                            0023  Blind Mode                       INPUT (0) PASSWORD$                                                             (BM)                            0024  Blind Mode                                                                                                       (BM)                            0025  Blind Mode                    b. LENGTH 32 & LOCAL PASSWORD$                                                     (BM)                            0026  Blind Mode                       .                                                                               (BM)                            0027  Blind Mode                       PRINT (0) (BM)                                                                  (BM)                            0028  Blind Mode                       INPUT (0) PASSWORD$                                                             (BM)                            0029  Blind Mode                                                                                                       (BM)                            0030  Blind Mode                    This example shows how to set the blind mode input buffer. The                     (BM)                            0031  Blind Mode                    (BM) control code is written and the data is entered into the                      (BM)                            0032  Blind Mode                    variable named PASSWORD$. This data will not be visible on the                     (BM)                            0033  Blind Mode                    screen as it is entered.                                                           (Blink)                         0001                              Mnemonic:                                                                            (Blink)                         0002                                                                                                                   (Blink)                         0003                                (Blink)                                                                            (Blink)                         0004                                                                                                                   (Blink)                         0005                              Hex equivalent:                                                                      (Blink)                         0006                                                                                                                   (Blink)                         0007                                "@0E0001@"                                                                         (Blink)                         0008                                                                                                                   (Blink)                         0009                              Discussion:                                                                          (Blink)                         0010                                                                                                                   (Blink)                         0011                                This mnemonic displays blinking characters on the Comet console.                   (Blink)                         0012                                Blinking works only on "bright" characters that are defined as                     (Blink)                         0013                                the "background color" of a field (i.e., the first character in                    (Blink)                         0014                                the color definition). Blinking works on all of the "bright"                       (Blink)                         0015                                characters on the screen, including foreground fields, background                  (Blink)                         0016                                fields, invisible fields, and data entry fields.                                   (Blink)                         0017                                                                                                                   (Blink)                         0018                                To blink all "bright" characters on the screen, use the following                  (Blink)                         0019                                instruction:                                                                       (Blink)                         0020                                                                                                                   (Blink)                         0021                                   PRINT (0) (Blink)                                                               (Blink)                         0022                                                                                                                   (Blink)                         0023                                To display "bright" characters, and stop the blinking, use the                     (Blink)                         0024                                following instruction:                                                             (Blink)                         0025                                                                                                                   (Blink)                         0026                                   PRINT (0) <(Bright)>                                                            (Blink)                         0027                                                                                                                   (Blink)                         0028                                The 16 VGA colors are shown below, with the "bright" characters                    (Blink)                         0029                                shown at the right-hand side:                                                      (Blink)                         0030                                                                                                                   (Blink)                         0031                                Regular colors         Bright colors (blinking works here)                         (Blink)                         0032                                ==========================================================                         (Blink)                         0033                                0  black               8    gray                                                   (Blink)                         0034                                1  blue                9    light blue                                             (Blink)                         0035                                2  green               A    light green                                            (Blink)                         0036                                3  cyan                B    light cyan                                             (Blink)                         0037                                4  red                 C    light red                                              (Blink)                         0038                                5  magenta             D    light magenta                                          (Blink)                         0039                                6  brown               E    yellow                                                 (Blink)                         0040                                7  white               F    bright white                                           (Blink)                         0041                                                                                                                   (Blink)                         0042                                Examples:                                                                          (Blink)                         0043                                                                                                                   (Blink)                         0044                                Color   Definition                              Will it blink?                     (Blink)                         0045                                ==============================================================                     (Blink)                         0046                                17      blue background, white characters                 no                       (Blink)                         0047                                97      light blue background, white characters           yes                      (Blink)                         0048                                1F      blue background, bright white characters          no                       (Blink)                         0049                                9F      light blue background, bright white characters    yes                      (Blink)                         0050                                                                                                                   (Blink)                         0051                              Example:                                                                             (Blink)                         0052                                                                                                                   (Blink)                         0053                                a. 100 FORMAT (Blink)                                                              (Blink)                         0054                                   .                                                                               (Blink)                         0055                                   PRINT (0,100)                                                                   (Blink)                         0056                                                                                                                   (Blink)                         0057                                b. PRINT (0) (Blink)                                                               (Bright)                        0001                              Mnemonic:                                                                            (Bright)                        0002                                                                                                                   (Bright)                        0003                                (Bright)                                                                           (Bright)                        0004                                                                                                                   (Bright)                        0005                              Hex equivalent:                                                                      (Bright)                        0006                                                                                                                   (Bright)                        0007                                "@0E0002@"                                                                         (Bright)                        0008                                                                                                                   (Bright)                        0009                              Discussion:                                                                          (Bright)                        0010                                                                                                                   (Bright)                        0011                                This mnemonic displays bright characters on the Comet console.                     (Bright)                        0012                                Bright characters that are defined as the "background color" of a                  (Bright)                        0013                                field (i.e., the first character in the color definition).                         (Bright)                        0014                                                                                                                   (Bright)                        0015                                To display "bright" characters, use the following instruction:                     (Bright)                        0016                                                                                                                   (Bright)                        0017                                   PRINT (0) <(Bright)>                                                            (Bright)                        0018                                                                                                                   (Bright)                        0019                                Note: The (Bright) mnemonic also turns off blinking fields that                    (Bright)                        0020                                have been previously set with the <(Blink)> mnemonic.                              (Bright)                        0021                                                                                                                   (Bright)                        0022                                The 16 VGA colors are shown below, with the "bright" characters                    (Bright)                        0023                                shown at the right-hand side:                                                      (Bright)                        0024                                                                                                                   (Bright)                        0025                                Regular colors         Bright colors                                               (Bright)                        0026                                =========================================                                          (Bright)                        0027                                0  black               8    gray                                                   (Bright)                        0028                                1  blue                9    light blue                                             (Bright)                        0029                                2  green               A    light green                                            (Bright)                        0030                                3  cyan                B    light cyan                                             (Bright)                        0031                                4  red                 C    light red                                              (Bright)                        0032                                5  magenta             D    light magenta                                          (Bright)                        0033                                6  brown               E    yellow                                                 (Bright)                        0034                                7  white               F    bright white                                           (Bright)                        0035                                                                                                                   (Bright)                        0036                              Example:                                                                             (Bright)                        0037                                                                                                                   (Bright)                        0038                                a. 100 FORMAT (Bright)                                                             (Bright)                        0039                                   .                                                                               (Bright)                        0040                                   PRINT (0,100)                                                                   (Bright)                        0041                                                                                                                   (Bright)                        0042                                b. PRINT (0) (Bright)                                                              (CF)                            0001  Clear Foreground            Mnemonic:                                                                            (CF)                            0002  Clear Foreground                                                                                                 (CF)                            0003  Clear Foreground              (CF)                                                                               (CF)                            0004  Clear Foreground                                                                                                 (CF)                            0005  Clear Foreground            Hex equivalent:                                                                      (CF)                            0006  Clear Foreground                                                                                                 (CF)                            0007  Clear Foreground              "@06@"                                                                             (CF)                            0008  Clear Foreground                                                                                                 (CF)                            0009  Clear Foreground            Discussion:                                                                          (CF)                            0010  Clear Foreground                                                                                                 (CF)                            0011  Clear Foreground              The (CF) control code clears all foreground screen positions to                    (CF)                            0012  Clear Foreground              foreground blanks and positions the cursor at the first                            (CF)                            0013  Clear Foreground              foreground position on the screen (the upper left corner). This                    (CF)                            0014  Clear Foreground              control does not affect background or invisible (suppressed                        (CF)                            0015  Clear Foreground              background) screen positions.                                                      (CF)                            0016  Clear Foreground                                                                                                 (CF)                            0017  Clear Foreground              This control code is typically used to clear input data from a                     (CF)                            0018  Clear Foreground              formatted screen after it is entered in order to prepare for the                   (CF)                            0019  Clear Foreground              next set of input data.                                                            (CF)                            0020  Clear Foreground                                                                                                 (CF)                            0021  Clear Foreground            Example:                                                                             (CF)                            0022  Clear Foreground                                                                                                 (CF)                            0023  Clear Foreground              a. 100 FORMAT (CF)                                                                 (CF)                            0024  Clear Foreground                 .                                                                               (CF)                            0025  Clear Foreground                 PRINT (0,100)                                                                   (CF)                            0026  Clear Foreground                                                                                                 (CF)                            0027  Clear Foreground              b. PRINT (0) (CF)                                                                  (CF)                            0028  Clear Foreground                                                                                                 (CF)                            0029  Clear Foreground              This example shows how to clear all foreground screen positions.                   (CFLD)                          0001  Clear Field                 Mnemonic:                                                                            (CFLD)                          0002  Clear Field                                                                                                      (CFLD)                          0003  Clear Field                   (CFLD)                                                                             (CFLD)                          0004  Clear Field                                                                                                      (CFLD)                          0005  Clear Field                 Hex equivalent:                                                                      (CFLD)                          0006  Clear Field                                                                                                      (CFLD)                          0007  Clear Field                   "@0407@"                                                                           (CFLD)                          0008  Clear Field                                                                                                      (CFLD)                          0009  Clear Field                 Discussion:                                                                          (CFLD)                          0010  Clear Field                                                                                                      (CFLD)                          0011  Clear Field                   The (CFLD) control code clears all foreground characters in a                      (CFLD)                          0012  Clear Field                   field in which the cursor is located and replaces them with                        (CFLD)                          0013  Clear Field                   foreground blanks. It then positions the cursor in the first                       (CFLD)                          0014  Clear Field                   position of the field (left-most position for alphanumeric fields                  (CFLD)                          0015  Clear Field                   and right-most position for right-justified numeric fields). The                   (CFLD)                          0016  Clear Field                   control code does not affect background or invisible (suppressed                   (CFLD)                          0017  Clear Field                   background) fields.                                                                (CFLD)                          0018  Clear Field                                                                                                      (CFLD)                          0019  Clear Field                   This control code may also include a positioning statement to                      (CFLD)                          0020  Clear Field                   start the clearing operation at a specific point on the screen.                    (CFLD)                          0021  Clear Field                                                                                                      (CFLD)                          0022  Clear Field                 Example:                                                                             (CFLD)                          0023  Clear Field                                                                                                      (CFLD)                          0024  Clear Field                   a. 100 FORMAT (CFLD),@(10,0)                                                       (CFLD)                          0025  Clear Field                      .                                                                               (CFLD)                          0026  Clear Field                      PRINT (0,100)                                                                   (CFLD)                          0027  Clear Field                                                                                                      (CFLD)                          0028  Clear Field                   b. PRINT (0) (CFLD),@(10,0)                                                        (CFLD)                          0029  Clear Field                                                                                                      (CFLD)                          0030  Clear Field                   This example demonstrates the "clear field" control code. The                      (CFLD)                          0031  Clear Field                   positioning statement puts the control into action at column 10,                   (CFLD)                          0032  Clear Field                   row 0. If this location is a foreground field, it will be cleared                  (CFLD)                          0033  Clear Field                   to foreground blanks (if not, the control code will do nothing).                   (CH)                            0001  Cursor Home                 Mnemonic:                                                                            (CH)                            0002  Cursor Home                                                                                                      (CH)                            0003  Cursor Home                   (CH)                                                                               (CH)                            0004  Cursor Home                                                                                                      (CH)                            0005  Cursor Home                 Discussion:                                                                          (CH)                            0006  Cursor Home                                                                                                      (CH)                            0007  Cursor Home                   The (CH) control code moves the cursor to the "home" position on                   (CH)                            0008  Cursor Home                   the screen. Home position is the upper left foreground location                    (CH)                            0009  Cursor Home                   of the screen. Since the cursor will land only in a foreground                     (CH)                            0010  Cursor Home                   area, "home" may be something other than the upper left corner.                    (CH)                            0011  Cursor Home                                                                                                      (CH)                            0012  Cursor Home                   For example, if the upper left corner of the screen contains                       (CH)                            0013  Cursor Home                   background or invisible (suppressed background) characters, the                    (CH)                            0014  Cursor Home                   cursor will search to the right and to the next line(s) if                         (CH)                            0015  Cursor Home                   necessary for the first available foreground position.                             (CH)                            0016  Cursor Home                                                                                                      (CH)                            0017  Cursor Home                   Once a foreground field is located, the cursor will be positioned                  (CH)                            0018  Cursor Home                   at the first location in that field (left-most position for                        (CH)                            0019  Cursor Home                   alphanumeric fields and right-most position for right-justified                    (CH)                            0020  Cursor Home                   numeric fields).                                                                   (CH)                            0021  Cursor Home                                                                                                      (CH)                            0022  Cursor Home                 Example:                                                                             (CH)                            0023  Cursor Home                                                                                                      (CH)                            0024  Cursor Home                   a. 100 FORMAT (CH)                                                                 (CH)                            0025  Cursor Home                      .                                                                               (CH)                            0026  Cursor Home                      PRINT (0,100)                                                                   (CH)                            0027  Cursor Home                                                                                                      (CH)                            0028  Cursor Home                   b. PRINT (0) (CH)                                                                  (CH)                            0029  Cursor Home                                                                                                      (CH)                            0030  Cursor Home                   This example shows how to move the cursor to the home position.                    (CPL132)                        0001  132 Characters Per Line     Mnemonic:                                                                            (CPL132)                        0002  132 Characters Per Line                                                                                          (CPL132)                        0003  132 Characters Per Line       (CPL132)                                                                           (CPL132)                        0004  132 Characters Per Line                                                                                          (CPL132)                        0005  132 Characters Per Line     Hex equivalent:                                                                      (CPL132)                        0006  132 Characters Per Line                                                                                          (CPL132)                        0007  132 Characters Per Line       "@040009@"                                                                         (CPL132)                        0008  132 Characters Per Line                                                                                          (CPL132)                        0009  132 Characters Per Line     Discussion:                                                                          (CPL132)                        0010  132 Characters Per Line                                                                                          (CPL132)                        0011  132 Characters Per Line       This mnemonic sets the video display mode to 132 characters per                    (CPL132)                        0012  132 Characters Per Line       line.                                                                              (CPL132)                        0013  132 Characters Per Line                                                                                          (CPL132)                        0014  132 Characters Per Line     Example:                                                                             (CPL132)                        0015  132 Characters Per Line                                                                                          (CPL132)                        0016  132 Characters Per Line       a. 100 FORMAT (CPL132)                                                             (CPL132)                        0017  132 Characters Per Line          .                                                                               (CPL132)                        0018  132 Characters Per Line          PRINT (0,100)                                                                   (CPL132)                        0019  132 Characters Per Line                                                                                          (CPL132)                        0020  132 Characters Per Line       b. PRINT (0) (CPL132)                                                              (CPL64)                         0001  64 Characters Per Line      Mnemonic:                                                                            (CPL64)                         0002  64 Characters Per Line                                                                                           (CPL64)                         0003  64 Characters Per Line        (CPL64)                                                                            (CPL64)                         0004  64 Characters Per Line                                                                                           (CPL64)                         0005  64 Characters Per Line      Hex equivalent:                                                                      (CPL64)                         0006  64 Characters Per Line                                                                                           (CPL64)                         0007  64 Characters Per Line        "@0402@"                                                                           (CPL64)                         0008  64 Characters Per Line                                                                                           (CPL64)                         0009  64 Characters Per Line      Discussion:                                                                          (CPL64)                         0010  64 Characters Per Line                                                                                           (CPL64)                         0011  64 Characters Per Line        The (CPL64) control code sets the screen display mode to 64                        (CPL64)                         0012  64 Characters Per Line        characters per line by 27 lines. The screen is cleared to                          (CPL64)                         0013  64 Characters Per Line        foreground blanks and the cursor is moved to the "home" position.                  (CPL64)                         0014  64 Characters Per Line        (Note: In normal mode, the cursor will be moved to the upper left                  (CPL64)                         0015  64 Characters Per Line        corner of the screen. If typewriter mode is in effect, the cursor                  (CPL64)                         0016  64 Characters Per Line        will be moved to the lower left corner of the screen.)                             (CPL64)                         0017  64 Characters Per Line                                                                                           (CPL64)                         0018  64 Characters Per Line        This control code may be overridden by the system configuration                    (CPL64)                         0019  64 Characters Per Line        (if the configuration forces the screen display to 80 columns,                     (CPL64)                         0020  64 Characters Per Line        for example).                                                                      (CPL64)                         0021  64 Characters Per Line                                                                                           (CPL64)                         0022  64 Characters Per Line      Example:                                                                             (CPL64)                         0023  64 Characters Per Line                                                                                           (CPL64)                         0024  64 Characters Per Line        a. 100 FORMAT (CPL64)                                                              (CPL64)                         0025  64 Characters Per Line           .                                                                               (CPL64)                         0026  64 Characters Per Line           PRINT (0,100)                                                                   (CPL64)                         0027  64 Characters Per Line                                                                                           (CPL64)                         0028  64 Characters Per Line        b. PRINT (0) (CPL64)                                                               (CPL64)                         0029  64 Characters Per Line                                                                                           (CPL64)                         0030  64 Characters Per Line        This example shows how to set 64 character-per-line mode.                          (CPL80)                         0001  80 Characters Per Line      Mnemonic:                                                                            (CPL80)                         0002  80 Characters Per Line                                                                                           (CPL80)                         0003  80 Characters Per Line        (CPL80)                                                                            (CPL80)                         0004  80 Characters Per Line                                                                                           (CPL80)                         0005  80 Characters Per Line      Hex equivalent:                                                                      (CPL80)                         0006  80 Characters Per Line                                                                                           (CPL80)                         0007  80 Characters Per Line        "@0403@"                                                                           (CPL80)                         0008  80 Characters Per Line                                                                                           (CPL80)                         0009  80 Characters Per Line      Discussion:                                                                          (CPL80)                         0010  80 Characters Per Line                                                                                           (CPL80)                         0011  80 Characters Per Line        The (CPL80) control code sets the screen display mode to 80                        (CPL80)                         0012  80 Characters Per Line        characters per line by 24 lines. The screen is cleared to                          (CPL80)                         0013  80 Characters Per Line        foreground blanks and the cursor is moved to the "home" position.                  (CPL80)                         0014  80 Characters Per Line        (Note: In normal mode, the cursor will be moved to the upper left                  (CPL80)                         0015  80 Characters Per Line        corner of the screen. If typewriter mode is in effect, the cursor                  (CPL80)                         0016  80 Characters Per Line        will be moved to the lower left corner of the screen.)                             (CPL80)                         0017  80 Characters Per Line                                                                                           (CPL80)                         0018  80 Characters Per Line      Example:                                                                             (CPL80)                         0019  80 Characters Per Line                                                                                           (CPL80)                         0020  80 Characters Per Line        a. 100 FORMAT (CPL80)                                                              (CPL80)                         0021  80 Characters Per Line           .                                                                               (CPL80)                         0022  80 Characters Per Line           PRINT (0,100)                                                                   (CPL80)                         0023  80 Characters Per Line                                                                                           (CPL80)                         0024  80 Characters Per Line        b. PRINT (0) (CPL80)                                                               (CPL80)                         0025  80 Characters Per Line                                                                                           (CPL80)                         0026  80 Characters Per Line        This example shows how to set 80 character-per-line mode.                          (CR)                            0001  Cursor Return               Mnemonic:                                                                            (CR)                            0002  Cursor Return                                                                                                    (CR)                            0003  Cursor Return                 (CR)                                                                               (CR)                            0004  Cursor Return                                                                                                    (CR)                            0005  Cursor Return               Hex equivalent:                                                                      (CR)                            0006  Cursor Return                                                                                                    (CR)                            0007  Cursor Return                 "@0D@"                                                                             (CR)                            0008  Cursor Return                                                                                                    (CR)                            0009  Cursor Return               Discussion:                                                                          (CR)                            0010  Cursor Return                                                                                                    (CR)                            0011  Cursor Return                 In normal mode, this control code moves the cursor to the first                    (CR)                            0012  Cursor Return                 foreground position on the following line. If the cursor is on                     (CR)                            0013  Cursor Return                 the bottom line when this control code is issued, the cursor will                  (CR)                            0014  Cursor Return                 be moved to the top line of the screen. In either case, the                        (CR)                            0015  Cursor Return                 cursor will land only in a foreground field.                                       (CR)                            0016  Cursor Return                                                                                                    (CR)                            0017  Cursor Return                 In typewriter mode, this control code scrolls the screen up one                    (CR)                            0018  Cursor Return                 line (forcing the top line off the screen) and will move the                       (CR)                            0019  Cursor Return                 cursor to the beginning (left side) of the bottom line on the                      (CR)                            0020  Cursor Return                 screen.                                                                            (CR)                            0021  Cursor Return                                                                                                    (CR)                            0022  Cursor Return               Example:                                                                             (CR)                            0023  Cursor Return                                                                                                    (CR)                            0024  Cursor Return                 a. 100 FORMAT (CR)                                                                 (CR)                            0025  Cursor Return                    .                                                                               (CR)                            0026  Cursor Return                    PRINT (0,100)                                                                   (CR)                            0027  Cursor Return                                                                                                    (CR)                            0028  Cursor Return                 b. PRINT (0) (CR)                                                                  (CR)                            0029  Cursor Return                                                                                                    (CR)                            0030  Cursor Return                 This example shows how to issue the cursor return control code.                    (CR)-printer                    0001  Carriage Return             Mnemonic:                                                                            (CR)-printer                    0002  Carriage Return                                                                                                  (CR)-printer                    0003  Carriage Return               (CR)                                                                               (CR)-printer                    0004  Carriage Return                                                                                                  (CR)-printer                    0005  Carriage Return             Discussion:                                                                          (CR)-printer                    0006  Carriage Return                                                                                                  (CR)-printer                    0007  Carriage Return               The (CR) control code performs a carriage return function for the                  (CR)-printer                    0008  Carriage Return               printer. If this control is issued in the middle of a print line,                  (CR)-printer                    0009  Carriage Return               it advances the printer to the beginning of the next line (unlike                  (CR)-printer                    0010  Carriage Return               a line feed control, which would skip the next line and move to                    (CR)-printer                    0011  Carriage Return               the beginning of the following line).                                              (CR)-printer                    0012  Carriage Return                                                                                                  (CR)-printer                    0013  Carriage Return             Example:                                                                             (CR)-printer                    0014  Carriage Return                                                                                                  (CR)-printer                    0015  Carriage Return               a. 100 FORMAT "CUSTOMER LISTING";(CR);"PRINTED ON:";DAY$                           (CR)-printer                    0016  Carriage Return                  .                                                                               (CR)-printer                    0017  Carriage Return                  OPEN (1) "LP1"                                                                  (CR)-printer                    0018  Carriage Return                  .                                                                               (CR)-printer                    0019  Carriage Return                  PRINT (1,100)                                                                   (CR)-printer                    0020  Carriage Return                                                                                                  (CR)-printer                    0021  Carriage Return               b. OPEN (1) "LP1"                                                                  (CR)-printer                    0022  Carriage Return                  .                                                                               (CR)-printer                    0023  Carriage Return                  PRINT (1) "CUSTOMER LISTING";(CR);"PRINTED ON:";DAY$                            (CR)-printer                    0024  Carriage Return                                                                                                  (CR)-printer                    0025  Carriage Return               This example prints a heading, performs a carriage return, and                     (CR)-printer                    0026  Carriage Return               then prints a subheading on the next line.                                         (CS)                            0001  Clear Screen                Mnemonic:                                                                            (CS)                            0002  Clear Screen                                                                                                     (CS)                            0003  Clear Screen                  (CS)                                                                               (CS)                            0004  Clear Screen                                                                                                     (CS)                            0005  Clear Screen                Hex equivalent:                                                                      (CS)                            0006  Clear Screen                                                                                                     (CS)                            0007  Clear Screen                  "@05@"                                                                             (CS)                            0008  Clear Screen                                                                                                     (CS)                            0009  Clear Screen                Discussion:                                                                          (CS)                            0010  Clear Screen                                                                                                     (CS)                            0011  Clear Screen                  The (CS) control code clears the entire screen to foreground                       (CS)                            0012  Clear Screen                  blanks and moves the cursor to the home position.                                  (CS)                            0013  Clear Screen                                                                                                     (CS)                            0014  Clear Screen                Example:                                                                             (CS)                            0015  Clear Screen                                                                                                     (CS)                            0016  Clear Screen                  a. 100 FORMAT (CS)                                                                 (CS)                            0017  Clear Screen                     .                                                                               (CS)                            0018  Clear Screen                     PRINT (0,100)                                                                   (CS)                            0019  Clear Screen                                                                                                     (CS)                            0020  Clear Screen                  b. PRINT (0) (CS)                                                                  (CS)                            0021  Clear Screen                                                                                                     (CS)                            0022  Clear Screen                  This example shows how to clear the screen.                                        (Change Color)                  0001                              Mnemonic:                                                                            (Change Color)                  0002                                                                                                                   (Change Color)                  0003                                (Change Color=ARG1$)                                                               (Change Color)                  0004                                                                                                                   (Change Color)                  0005                              Hex equivalent:                                                                      (Change Color)                  0006                                                                                                                   (Change Color)                  0007                                "@0E0E0Bxx00@"                                                                     (Change Color)                  0008                                                                                                                   (Change Color)                  0009                                where:                                                                             (Change Color)                  0010                                xx = the foreground color                                                          (Change Color)                  0011                                                                                                                   (Change Color)                  0012                              Discussion:                                                                          (Change Color)                  0013                                                                                                                   (Change Color)                  0014                                This mnemonic changes the foreground color attribute on the Comet                  (Change Color)                  0015                                console, and is effective only for the current write operation.                    (Change Color)                  0016                                                                                                                   (Change Color)                  0017                                ARG1$ is the foreground color; it may be a string constant or a                    (Change Color)                  0018                                string variable containing the hex representation of the screen                    (Change Color)                  0019                                color. See <Screen Colors,#HELPMT6> for a list of color codes.                     (Change Color)                  0020                                                                                                                   (Change Color)                  0021                              Example:                                                                             (Change Color)                  0022                                                                                                                   (Change Color)                  0023                                a. 100 FORMAT (Change Color="@07@")                                                (Change Color)                  0024                                   .                                                                               (Change Color)                  0025                                   PRINT (0,100)                                                                   (Change Color)                  0026                                                                                                                   (Change Color)                  0027                                b. PRINT (0) (Change Color="@07@")                                                 (Change Colors)                 0001                              Mnemonic:                                                                            (Change Colors)                 0002                                                                                                                   (Change Colors)                 0003                                (Change Colors=ARG1$,ARG2$,ARG3$,ARG4$,ARG5$)                                      (Change Colors)                 0004                                                                                                                   (Change Colors)                 0005                              Hex equivalent:                                                                      (Change Colors)                 0006                                                                                                                   (Change Colors)                 0007                                "@0E0E0Evvwwxxyyzz@"                                                               (Change Colors)                 0008                                                                                                                   (Change Colors)                 0009                                where:                                                                             (Change Colors)                 0010                                vv = the foreground color                                                          (Change Colors)                 0011                                ww = the background color                                                          (Change Colors)                 0012                                xx = the invisible color (for TM's, TP's, and RJ's)                                (Change Colors)                 0013                                yy = the border color                                                              (Change Colors)                 0014                                zz = the entry field color                                                         (Change Colors)                 0015                                                                                                                   (Change Colors)                 0016                              Discussion:                                                                          (Change Colors)                 0017                                                                                                                   (Change Colors)                 0018                                The mnemonic changes all of the screen colors on the Comet                         (Change Colors)                 0019                                console, or within the current Comet window.                                       (Change Colors)                 0020                                                                                                                   (Change Colors)                 0021                                ARG1$ is the foreground color                                                      (Change Colors)                 0022                                ARG2$ is the background color                                                      (Change Colors)                 0023                                ARG3$ is the invisible color (for TM's, TP's, and RJ's)                            (Change Colors)                 0024                                ARG4$ is the border color                                                          (Change Colors)                 0025                                ARG5$ is the entry field color                                                     (Change Colors)                 0026                                                                                                                   (Change Colors)                 0027                                All of these arguments are in hex and may be string constants or                   (Change Colors)                 0028                                a string variable containing the hex representation of the screen                  (Change Colors)                 0029                                color. See <Screen Colors,#HELPMT6> for a list of color codes.                     (Change Colors)                 0030                                                                                                                   (Change Colors)                 0031                              Example:                                                                             (Change Colors)                 0032                                                                                                                   (Change Colors)                 0033                                a. 100 FORMAT (Change colors="@0F@","@A0@","@00@","@C0@","@0F@")                   (Change Colors)                 0034                                   .                                                                               (Change Colors)                 0035                                   PRINT (0,100)                                                                   (Change Colors)                 0036                                                                                                                   (Change Colors)                 0037                                b. Print (0) (Change colors="@0F@","@A0@","@00@","@C0@","@0F@")                    (Check Box Off)                 0001                              Mnemonic:                                                                            (Check Box Off)                 0002                                                                                                                   (Check Box Off)                 0003                                (Check Box Off)                                                                    (Check Box Off)                 0004                                                                                                                   (Check Box Off)                 0005                              Hex equivalent:                                                                      (Check Box Off)                 0006                                                                                                                   (Check Box Off)                 0007                                "@CAC6B6@"                                                                         (Check Box Off)                 0008                                                                                                                   (Check Box Off)                 0009                              Discussion:                                                                          (Check Box Off)                 0010                                                                                                                   (Check Box Off)                 0011                                This mnemonic draws a graphical check box on the screen. The                       (Check Box Off)                 0012                                check box is in the "off" position (i.e., no check mark appears                    (Check Box Off)                 0013                                in the box).                                                                       (Check Box Off)                 0014                                                                                                                   (Check Box Off)                 0015                                The check box symbol occupies 3 spaces on the screen.                              (Check Box Off)                 0016                                                                                                                   (Check Box Off)                 0017                                Note: The <(Enhanced Characters On)> mnemonic must be used before                  (Check Box Off)                 0018                                the (Check Box Off) mnemonic us used.                                              (Check Box Off)                 0019                                                                                                                   (Check Box Off)                 0020                                Also see <(Check Box On)>.                                                         (Check Box Off)                 0021                                                                                                                   (Check Box Off)                 0022                              Example:                                                                             (Check Box Off)                 0023                                                                                                                   (Check Box Off)                 0024                                a. 100 FORMAT (Check Box Off)                                                      (Check Box Off)                 0025                                   .                                                                               (Check Box Off)                 0026                                   PRINT (0,100)                                                                   (Check Box Off)                 0027                                                                                                                   (Check Box Off)                 0028                                b. PRINT (0) (Check Box Off)                                                       (Check Box On)                  0001                              Mnemonic:                                                                            (Check Box On)                  0002                                                                                                                   (Check Box On)                  0003                                (Check Box On)                                                                     (Check Box On)                  0004                                                                                                                   (Check Box On)                  0005                              Hex equivalent:                                                                      (Check Box On)                  0006                                                                                                                   (Check Box On)                  0007                                "@CACEB6@"                                                                         (Check Box On)                  0008                                                                                                                   (Check Box On)                  0009                              Discussion:                                                                          (Check Box On)                  0010                                                                                                                   (Check Box On)                  0011                                This mnemonic draws a graphical check box on the screen. The                       (Check Box On)                  0012                                check box is in the "on" position (i.e., a check mark appears in                   (Check Box On)                  0013                                the box).                                                                          (Check Box On)                  0014                                                                                                                   (Check Box On)                  0015                                The check box symbol occupies 3 spaces on the screen.                              (Check Box On)                  0016                                                                                                                   (Check Box On)                  0017                                Note: The <(Enhanced Characters On)> mnemonic must be used before                  (Check Box On)                  0018                                the (Check Box On) mnemonic us used.                                               (Check Box On)                  0019                                                                                                                   (Check Box On)                  0020                                Also see <(Check Box Off)>.                                                        (Check Box On)                  0021                                                                                                                   (Check Box On)                  0022                              Example:                                                                             (Check Box On)                  0023                                                                                                                   (Check Box On)                  0024                                a. 100 FORMAT (Check Box On)                                                       (Check Box On)                  0025                                   .                                                                               (Check Box On)                  0026                                   PRINT (0,100)                                                                   (Check Box On)                  0027                                                                                                                   (Check Box On)                  0028                                b. PRINT (0) (Check Box On)                                                        (Close Icon)                    0001                              Mnemonic:                                                                            (Close Icon)                    0002                                                                                                                   (Close Icon)                    0003                                (Close Icon)                                                                       (Close Icon)                    0004                                                                                                                   (Close Icon)                    0005                              Hex equivalent:                                                                      (Close Icon)                    0006                                                                                                                   (Close Icon)                    0007                                "@CCB8@"                                                                           (Close Icon)                    0008                                                                                                                   (Close Icon)                    0009                              Discussion:                                                                          (Close Icon)                    0010                                                                                                                   (Close Icon)                    0011                                This mnemonic draws a graphical "close" icon on the screen. The                    (Close Icon)                    0012                                icon occupies 3 spaces on the screen.                                              (Close Icon)                    0013                                                                                                                   (Close Icon)                    0014                                Note: The <(Enhanced Characters On)> mnemonic must be used before                  (Close Icon)                    0015                                the (Close Icon) mnemonic us used.                                                 (Close Icon)                    0016                                                                                                                   (Close Icon)                    0017                              Example:                                                                             (Close Icon)                    0018                                                                                                                   (Close Icon)                    0019                                a. 100 FORMAT (Close Icon)                                                         (Close Icon)                    0020                                   .                                                                               (Close Icon)                    0021                                   PRINT (0,100)                                                                   (Close Icon)                    0022                                                                                                                   (Close Icon)                    0023                                b. PRINT (0) (Close Icon)                                                          (Create Window)                 0001                              Mnemonic:                                                                            (Create Window)                 0002                                                                                                                   (Create Window)                 0003                                (Create Window=a,b,c,d)                                                            (Create Window)                 0004                                                                                                                   (Create Window)                 0005                                where:                                                                             (Create Window)                 0006                                a = upper left column (decimal)                                                    (Create Window)                 0007                                b = upper left row (decimal)                                                       (Create Window)                 0008                                c = lower right column (decimal)                                                   (Create Window)                 0009                                d = lower right row (decimal)                                                      (Create Window)                 0010                                                                                                                   (Create Window)                 0011                              Hex equivalent:                                                                      (Create Window)                 0012                                                                                                                   (Create Window)                 0013                                "@0E0D00wwxxyyzz@"                                                                 (Create Window)                 0014                                                                                                                   (Create Window)                 0015                                where:                                                                             (Create Window)                 0016                                ww = upper left row (hex)                                                          (Create Window)                 0017                                xx = upper left column (hex)                                                       (Create Window)                 0018                                yy = lower right row (hex)                                                         (Create Window)                 0019                                zz = lower right column (hex)                                                      (Create Window)                 0020                                                                                                                   (Create Window)                 0021                              Discussion:                                                                          (Create Window)                 0022                                                                                                                   (Create Window)                 0023                                This mnemonic creates a Comet window using the specified screen                    (Create Window)                 0024                                coordinates. Note: These coordinates are relative to the full                      (Create Window)                 0025                                screen (e.g., column 0, row 0 always represents the upper left                     (Create Window)                 0026                                corner of the display).                                                            (Create Window)                 0027                                                                                                                   (Create Window)                 0028                                Also see the discussion on <Comet windows,#HELPMT5>.                               (Create Window)                 0029                                                                                                                   (Create Window)                 0030                              Example:                                                                             (Create Window)                 0031                                                                                                                   (Create Window)                 0032                                a. 100 FORMAT (Create Window=2,3,70,20)                                            (Create Window)                 0033                                   .                                                                               (Create Window)                 0034                                   PRINT (0,100)                                                                   (Create Window)                 0035                                                                                                                   (Create Window)                 0036                                b. PRINT (0) (Create Window=2,3,70,20)                                             (Create Window)                 0037                                                                                                                   (Create Window)                 0038                                This example show how to create a Comet window from column 2, row                  (Create Window)                 0039                                3 (the upper left corner) to column 70, row 20 (the lower right                    (Create Window)                 0040                                corner).                                                                           (DE)                            0001  Default Characters Per Line Mnemonic:                                                                            (DE)                            0002  Default Characters Per Line                                                                                      (DE)                            0003  Default Characters Per Line   (DE)                                                                               (DE)                            0004  Default Characters Per Line                                                                                      (DE)                            0005  Default Characters Per Line Hex equivalent:                                                                      (DE)                            0006  Default Characters Per Line                                                                                      (DE)                            0007  Default Characters Per Line   "@0404@"                                                                           (DE)                            0008  Default Characters Per Line                                                                                      (DE)                            0009  Default Characters Per Line Discussion:                                                                          (DE)                            0010  Default Characters Per Line                                                                                      (DE)                            0011  Default Characters Per Line   This control code sets the default number of characters per line.                  (DE)                            0012  Default Characters Per Line   The default value is established in the terminal setup, the                        (DE)                            0013  Default Characters Per Line   terminal emulator setup, or the console setup, depending on the                    (DE)                            0014  Default Characters Per Line   type of device being used.                                                         (DE)                            0015  Default Characters Per Line                                                                                      (DE)                            0016  Default Characters Per Line Example:                                                                             (DE)                            0017  Default Characters Per Line                                                                                      (DE)                            0018  Default Characters Per Line   a. 100 FORMAT (DE)                                                                 (DE)                            0019  Default Characters Per Line      .                                                                               (DE)                            0020  Default Characters Per Line      PRINT (0,100)                                                                   (DE)                            0021  Default Characters Per Line                                                                                      (DE)                            0022  Default Characters Per Line   b. PRINT (0) (DE)                                                                  (DE)                            0023  Default Characters Per Line                                                                                      (DE)                            0024  Default Characters Per Line   This example shows how to choose the default number of characters                  (DE)                            0025  Default Characters Per Line   per line.                                                                          (Delete Window)                 0001                              Mnemonic:                                                                            (Delete Window)                 0002                                                                                                                   (Delete Window)                 0003                                (Delete Window)                                                                    (Delete Window)                 0004                                                                                                                   (Delete Window)                 0005                              Hex equivalent:                                                                      (Delete Window)                 0006                                                                                                                   (Delete Window)                 0007                                "@0E0D01@"                                                                         (Delete Window)                 0008                                                                                                                   (Delete Window)                 0009                              Discussion:                                                                          (Delete Window)                 0010                                                                                                                   (Delete Window)                 0011                                This mnemonic deletes a Comet window. If multiple windows have                     (Delete Window)                 0012                                been created, this mnemonic deletes the most recently displayed                    (Delete Window)                 0013                                window.                                                                            (Delete Window)                 0014                                                                                                                   (Delete Window)                 0015                                Also see the discussion on <Comet windows,#HELPMT5>.                               (Delete Window)                 0016                                                                                                                   (Delete Window)                 0017                              Example:                                                                             (Delete Window)                 0018                                                                                                                   (Delete Window)                 0019                                a. 100 FORMAT (Delete Window)                                                      (Delete Window)                 0020                                   .                                                                               (Delete Window)                 0021                                   PRINT (0,100)                                                                   (Delete Window)                 0022                                                                                                                   (Delete Window)                 0023                                b. PRINT (0) (Delete Window)                                                       (Draw box)                      0001                              Mnemonic:                                                                            (Draw box)                      0002                                                                                                                   (Draw box)                      0003                                (Draw box=a,b,c,d)                                                                 (Draw box)                      0004                                                                                                                   (Draw box)                      0005                                where:                                                                             (Draw box)                      0006                                a = upper left column (decimal)                                                    (Draw box)                      0007                                b = upper left row (decimal)                                                       (Draw box)                      0008                                c = lower right column (decimal)                                                   (Draw box)                      0009                                d = lower right row (decimal)                                                      (Draw box)                      0010                                                                                                                   (Draw box)                      0011                              Discussion:                                                                          (Draw box)                      0012                                                                                                                   (Draw box)                      0013                                This mnemonic draws a graphical box using the specified screen                     (Draw box)                      0014                                coordinates (decimal values).                                                      (Draw box)                      0015                                                                                                                   (Draw box)                      0016                                Note: The box overwrites any text displayed on the screen within                   (Draw box)                      0017                                the specified coordinates (i.e., this is not a "window").                          (Draw box)                      0018                                                                                                                   (Draw box)                      0019                                Also see the discussion on <Comet windows,#HELPMT5>.                               (Draw box)                      0020                                                                                                                   (Draw box)                      0021                              Example:                                                                             (Draw box)                      0022                                                                                                                   (Draw box)                      0023                                a. 100 FORMAT (Draw box=2,3,5,10)                                                  (Draw box)                      0024                                   .                                                                               (Draw box)                      0025                                   PRINT (0,100                                                                    (Draw box)                      0026                                                                                                                   (Draw box)                      0027                                b. PRINT (0) (Draw box=2,3,5,10)                                                   (EN)                            0001  Enter Normal Mode           Mnemonic:                                                                            (EN)                            0002  Enter Normal Mode                                                                                                (EN)                            0003  Enter Normal Mode             (EN)                                                                               (EN)                            0004  Enter Normal Mode                                                                                                (EN)                            0005  Enter Normal Mode           Hex equivalent:                                                                      (EN)                            0006  Enter Normal Mode                                                                                                (EN)                            0007  Enter Normal Mode             "@0E06@"                                                                           (EN)                            0008  Enter Normal Mode                                                                                                (EN)                            0009  Enter Normal Mode           Discussion:                                                                          (EN)                            0010  Enter Normal Mode                                                                                                (EN)                            0011  Enter Normal Mode             The (EN) control code sets the video display in normal mode. The                   (EN)                            0012  Enter Normal Mode             location of displayed information, the placement of the cursor,                    (EN)                            0013  Enter Normal Mode             and the places where data is transmitted are determined by the                     (EN)                            0014  Enter Normal Mode             FORMAT statements in the program.                                                  (EN)                            0015  Enter Normal Mode                                                                                                (EN)                            0016  Enter Normal Mode             The alternative to normal mode is typewriter mode.                                 (EN)                            0017  Enter Normal Mode                                                                                                (EN)                            0018  Enter Normal Mode           Example:                                                                             (EN)                            0019  Enter Normal Mode                                                                                                (EN)                            0020  Enter Normal Mode             a. 100 FORMAT (EN);(SB);"CUSTOMER INQUIRY",@(10,0)                                 (EN)                            0021  Enter Normal Mode                .                                                                               (EN)                            0022  Enter Normal Mode                PRINT (0,100)                                                                   (EN)                            0023  Enter Normal Mode                                                                                                (EN)                            0024  Enter Normal Mode             b. PRINT (0) (EN);(SB);"CUSTOMER INQUIRY",@(10,0)                                  (EN)                            0025  Enter Normal Mode                                                                                                (EN)                            0026  Enter Normal Mode             This example shows how to set normal mode, either at the                           (EN)                            0027  Enter Normal Mode             beginning of a FORMAT statement or within a PRINT statement. The                   (EN)                            0028  Enter Normal Mode             additional controls set background mode and display a heading at                   (EN)                            0029  Enter Normal Mode             column 10, row 0.                                                                  (ET)                            0001  Enter Typewriter Mode       Mnemonic:                                                                            (ET)                            0002  Enter Typewriter Mode                                                                                            (ET)                            0003  Enter Typewriter Mode         (ET)                                                                               (ET)                            0004  Enter Typewriter Mode                                                                                            (ET)                            0005  Enter Typewriter Mode       Hex equivalent:                                                                      (ET)                            0006  Enter Typewriter Mode                                                                                            (ET)                            0007  Enter Typewriter Mode         "@0E05@"                                                                           (ET)                            0008  Enter Typewriter Mode                                                                                            (ET)                            0009  Enter Typewriter Mode       Discussion:                                                                          (ET)                            0010  Enter Typewriter Mode                                                                                            (ET)                            0011  Enter Typewriter Mode         The (ET) control code sets the video display in typewriter mode.                   (ET)                            0012  Enter Typewriter Mode         Each new line of data written to the screen causes the screen to                   (ET)                            0013  Enter Typewriter Mode         scroll up one line. The new line of data is written on the bottom                  (ET)                            0014  Enter Typewriter Mode         line of the screen in background mode.                                             (ET)                            0015  Enter Typewriter Mode                                                                                            (ET)                            0016  Enter Typewriter Mode         Transmit marks are automatically placed after the last byte of                     (ET)                            0017  Enter Typewriter Mode         data written and at the lower right corner of the screen (making                   (ET)                            0018  Enter Typewriter Mode         the remaining part of the bottom line the foreground data entry                    (ET)                            0019  Enter Typewriter Mode         field).                                                                            (ET)                            0020  Enter Typewriter Mode                                                                                            (ET)                            0021  Enter Typewriter Mode         The cursor is placed at the left-most position of the foreground                   (ET)                            0022  Enter Typewriter Mode         field on the bottom line.                                                          (ET)                            0023  Enter Typewriter Mode                                                                                            (ET)                            0024  Enter Typewriter Mode         The alternative to typewriter mode is normal mode.                                 (ET)                            0025  Enter Typewriter Mode                                                                                            (ET)                            0026  Enter Typewriter Mode       Example:                                                                             (ET)                            0027  Enter Typewriter Mode                                                                                            (ET)                            0028  Enter Typewriter Mode         a. 100 FORMAT (ET)                                                                 (ET)                            0029  Enter Typewriter Mode            .                                                                               (ET)                            0030  Enter Typewriter Mode            PRINT (0,100)                                                                   (ET)                            0031  Enter Typewriter Mode            PRINT (0) "ENTER CUSTOMER NUMBER:"                                              (ET)                            0032  Enter Typewriter Mode            INPUT (0) CUSTNUM$                                                              (ET)                            0033  Enter Typewriter Mode                                                                                            (ET)                            0034  Enter Typewriter Mode         b. PRINT (0) (ET)                                                                  (ET)                            0035  Enter Typewriter Mode            PRINT (0) "ENTER CUSTOMER NUMBER:"                                              (ET)                            0036  Enter Typewriter Mode            INPUT (0) CUSTNUM$                                                              (ET)                            0037  Enter Typewriter Mode                                                                                            (ET)                            0038  Enter Typewriter Mode         In this example, the screen is placed into typewriter mode. Then                   (ET)                            0039  Enter Typewriter Mode         a prompt is displayed and data is accepted into the variable                       (ET)                            0040  Enter Typewriter Mode         named CUSTNUM$. Items such as foreground, background and transmit                  (ET)                            0041  Enter Typewriter Mode         marks are handled automatically.                                                   (Enhanced Characters Off)       0001                              Mnemonic:                                                                            (Enhanced Characters Off)       0002                                                                                                                   (Enhanced Characters Off)       0003                                (Enhanced Characters Off)                                                          (Enhanced Characters Off)       0004                                                                                                                   (Enhanced Characters Off)       0005                              Description:                                                                         (Enhanced Characters Off)       0006                                                                                                                   (Enhanced Characters Off)       0007                                This control closes the enhanced character set.                                    (Enhanced Characters Off)       0008                                                                                                                   (Enhanced Characters Off)       0009                                Also see <(Enhanced Characters On)>.                                               (Enhanced Characters Off)       0010                                                                                                                   (Enhanced Characters Off)       0011                              Example:                                                                             (Enhanced Characters Off)       0012                                                                                                                   (Enhanced Characters Off)       0013                                a. PRINT (0) (Enhanced Characters Off)                                             (Enhanced Characters Off)       0014                                                                                                                   (Enhanced Characters Off)       0015                                b. 1000 FORMAT (Enhanced Characters Off)                                           (Enhanced Characters Off)       0016                                   .                                                                               (Enhanced Characters Off)       0017                                   PRINT (0,1000)                                                                  (Enhanced Characters On)        0001                              Mnemonic:                                                                            (Enhanced Characters On)        0002                                                                                                                   (Enhanced Characters On)        0003                                (Enhanced Characters On)                                                           (Enhanced Characters On)        0004                                                                                                                   (Enhanced Characters On)        0005                              Description:                                                                         (Enhanced Characters On)        0006                                                                                                                   (Enhanced Characters On)        0007                                This control opens the enhanced character set.                                     (Enhanced Characters On)        0008                                                                                                                   (Enhanced Characters On)        0009                                Also see <(Enhanced Characters Off)>.                                              (Enhanced Characters On)        0010                                                                                                                   (Enhanced Characters On)        0011                              Example:                                                                             (Enhanced Characters On)        0012                                                                                                                   (Enhanced Characters On)        0013                                a. PRINT (0) (Enhanced Characters On)                                              (Enhanced Characters On)        0014                                                                                                                   (Enhanced Characters On)        0015                                b. 1000 FORMAT (Enhanced Characters On)                                            (Enhanced Characters On)        0016                                   .                                                                               (Enhanced Characters On)        0017                                   PRINT (0,1000)                                                                  (Enhanced Mouse On)             0001                              Mnemonic:                                                                            (Enhanced Mouse On)             0002                                                                                                                   (Enhanced Mouse On)             0003                                (Enhanced Mouse On)                                                                (Enhanced Mouse On)             0004                                                                                                                   (Enhanced Mouse On)             0005                              Description:                                                                         (Enhanced Mouse On)             0006                                                                                                                   (Enhanced Mouse On)             0007                                This control opens the enhanced mouse driver (if possible).                        (Enhanced Mouse On)             0008                                                                                                                   (Enhanced Mouse On)             0009                                Also see <(BIOS Mouse On)> and <(Mouse On)>.                                       (Enhanced Mouse On)             0010                                                                                                                   (Enhanced Mouse On)             0011                              Example:                                                                             (Enhanced Mouse On)             0012                                                                                                                   (Enhanced Mouse On)             0013                                a. 100 FORMAT (Enhanced Mouse On)                                                  (Enhanced Mouse On)             0014                                   .                                                                               (Enhanced Mouse On)             0015                                   PRINT (0,100)                                                                   (Enhanced Mouse On)             0016                                                                                                                   (Enhanced Mouse On)             0017                                b. PRINT (0) (Enhanced Mouse On)                                                   (FAX Config File)               0001                              Mnemonic:                                                                            (FAX Config File)               0002                                                                                                                   (FAX Config File)               0003                                (FAX Config File=ARG1$)                                                            (FAX Config File)               0004                                                                                                                   (FAX Config File)               0005                              Description:                                                                         (FAX Config File)               0006                                                                                                                   (FAX Config File)               0007                                ARG1$ is a 79-character string that specifies the path to the FAX                  (FAX Config File)               0008                                Driver Defaults File (DOS format). Comet configuration will                        (FAX Config File)               0009                                include this file name for the fax device.                                         (FAX Config File)               0010                                                                                                                   (FAX Config File)               0011                                Also see <(FAX Write Config)>.                                                     (FAX Config File)               0012                                                                                                                   (FAX Config File)               0013                              Example:                                                                             (FAX Config File)               0014                                                                                                                   (FAX Config File)               0015                                PRINT (1) (FAX Config File="C:\FAX\FAXFILE.DAT")                                   (FAX Cover Page)                0001                              Mnemonic:                                                                            (FAX Cover Page)                0002                                                                                                                   (FAX Cover Page)                0003                                (FAX Cover Page)                                                                   (FAX Cover Page)                0004                                                                                                                   (FAX Cover Page)                0005                              Description:                                                                         (FAX Cover Page)                0006                                                                                                                   (FAX Cover Page)                0007                                This control enables the cover page in the facsimile.                              (FAX Cover Page)                0008                                                                                                                   (FAX Cover Page)                0009                                Note: The <(FAX Cover Text)> mnemonic also enables the cover                       (FAX Cover Page)                0010                                page.                                                                              (FAX Cover Page)                0011                                                                                                                   (FAX Cover Page)                0012                              Example:                                                                             (FAX Cover Page)                0013                                                                                                                   (FAX Cover Page)                0014                                PRINT (1) (FAX Cover Page)                                                         (FAX Cover Page)                0015                                                                                                                   (FAX Cover Text)                0001                              Mnemonic:                                                                            (FAX Cover Text)                0002                                                                                                                   (FAX Cover Text)                0003                                (FAX Cover Text=ARG1$)                                                             (FAX Cover Text)                0004                                                                                                                   (FAX Cover Text)                0005                              Description:                                                                         (FAX Cover Text)                0006                                                                                                                   (FAX Cover Text)                0007                                ARG1$ is an 80-character string that contains the text for the                     (FAX Cover Text)                0008                                facsimile cover page. This control automatically enables cover                     (FAX Cover Text)                0009                                page text option. A maximum of 36 lines of text is supported on                    (FAX Cover Text)                0010                                the cover page.                                                                    (FAX Cover Text)                0011                                                                                                                   (FAX Cover Text)                0012                              Example:                                                                             (FAX Cover Text)                0013                                                                                                                   (FAX Cover Text)                0014                                PRINT (1) (FAX Cover Text="Line 1...")                                             (FAX Cover Text)                0015                                PRINT (1) (FAX Cover Text="Line 2...")                                             (FAX Cover Text)                0016                                PRINT (1) (FAX Cover Text="Line 3...")                                             (FAX Cover Text)                0017                                PRINT (1) (FAX Cover Text="Line 4...")                                             (FAX Delete Job)                0001                              Mnemonic:                                                                            (FAX Delete Job)                0002                                                                                                                   (FAX Delete Job)                0003                                (FAX Delete Job=ARG1$)                                                             (FAX Delete Job)                0004                                                                                                                   (FAX Delete Job)                0005                              Description:                                                                         (FAX Delete Job)                0006                                                                                                                   (FAX Delete Job)                0007                                ARG1$ is a 2-character string containing the CAS even handle.                      (FAX Delete Job)                0008                                This control removes a submitted fax job from the CAS job queue.                   (FAX Delete Job)                0009                                                                                                                   (FAX Delete Job)                0010                              Example:                                                                             (FAX Delete Job)                0011                                                                                                                   (FAX Delete Job)                0012                                PRINT (1) (FAX Delete Job=HANDLE$)                                                 (FAX Delete On Send)            0001                              Mnemonic:                                                                            (FAX Delete On Send)            0002                                                                                                                   (FAX Delete On Send)            0003                                (FAX Delete On Send)                                                               (FAX Delete On Send)            0004                                                                                                                   (FAX Delete On Send)            0005                              Description:                                                                         (FAX Delete On Send)            0006                                                                                                                   (FAX Delete On Send)            0007                                This control deletes facsimile document upon transmission.                         (FAX Delete On Send)            0008                                                                                                                   (FAX Delete On Send)            0009                              Example:                                                                             (FAX Delete On Send)            0010                                                                                                                   (FAX Delete On Send)            0011                                PRINT (1) (FAX Delete On Send)                                                     (FAX Delete)                    0001                              Mnemonic:                                                                            (FAX Delete)                    0002                                                                                                                   (FAX Delete)                    0003                                (FAX Delete)                                                                       (FAX Delete)                    0004                                                                                                                   (FAX Delete)                    0005                              Description:                                                                         (FAX Delete)                    0006                                                                                                                   (FAX Delete)                    0007                                This control deletes facsimile documents even before                               (FAX Delete)                    0008                                transmission.                                                                      (FAX Delete)                    0009                                                                                                                   (FAX Delete)                    0010                              Example:                                                                             (FAX Delete)                    0011                                                                                                                   (FAX Delete)                    0012                                PRINT (1) (FAX Delete)                                                             (FAX Fine Resolution)           0001                              Mnemonic:                                                                            (FAX Fine Resolution)           0002                                                                                                                   (FAX Fine Resolution)           0003                                (FAX Fine Resolution)                                                              (FAX Fine Resolution)           0004                                                                                                                   (FAX Fine Resolution)           0005                              Description:                                                                         (FAX Fine Resolution)           0006                                                                                                                   (FAX Fine Resolution)           0007                                This control transmits the facsimile in fine resolution mode (196                  (FAX Fine Resolution)           0008                                lines per inch).                                                                   (FAX Fine Resolution)           0009                                                                                                                   (FAX Fine Resolution)           0010                                Also see <(FAX Normal Resolution)>                                                 (FAX Fine Resolution)           0011                                                                                                                   (FAX Fine Resolution)           0012                              Example:                                                                             (FAX Fine Resolution)           0013                                                                                                                   (FAX Fine Resolution)           0014                                PRINT (1) (FAX Fine Resolution)                                                    (FAX From)                      0001                              Mnemonic:                                                                            (FAX From)                      0002                                                                                                                   (FAX From)                      0003                                (FAX From=ARG1$)                                                                   (FAX From)                      0004                                                                                                                   (FAX From)                      0005                              Description:                                                                         (FAX From)                      0006                                                                                                                   (FAX From)                      0007                                ARG1$ is a 31-character string that specifies the contents of the                  (FAX From)                      0008                                FROM field on the cover page of the fax.                                           (FAX From)                      0009                                                                                                                   (FAX From)                      0010                                Also see <(FAX To)>.                                                               (FAX From)                      0011                                                                                                                   (FAX From)                      0012                              Example:                                                                             (FAX From)                      0013                                                                                                                   (FAX From)                      0014                                PRINT (1) (FAX From="Your name here")                                              (FAX Get Job Status)            0001                              Mnemonic:                                                                            (FAX Get Job Status)            0002                                                                                                                   (FAX Get Job Status)            0003                                (FAX Get Job Status=ARG1$)                                                         (FAX Get Job Status)            0004                                                                                                                   (FAX Get Job Status)            0005                              Description:                                                                         (FAX Get Job Status)            0006                                                                                                                   (FAX Get Job Status)            0007                                ARG1$ is a 2-character string that contains the CAS event handle.                  (FAX Get Job Status)            0008                                This control returns the complete CAS Control File structure on                    (FAX Get Job Status)            0009                                the next READ/INPUT.                                                               (FAX Get Job Status)            0010                                                                                                                   (FAX Get Job Status)            0011                              Example:                                                                             (FAX Get Job Status)            0012                                                                                                                   (FAX Get Job Status)            0013                                PRINT (1) (FAX Get Job Status=HANDLE$)                                             (FAX Logo File)                 0001                              Mnemonic:                                                                            (FAX Logo File)                 0002                                                                                                                   (FAX Logo File)                 0003                                (FAX Logo File=ARG1$)                                                              (FAX Logo File)                 0004                                                                                                                   (FAX Logo File)                 0005                              Description:                                                                         (FAX Logo File)                 0006                                                                                                                   (FAX Logo File)                 0007                                ARG1$ is a 79-character string that specifies the path to the                      (FAX Logo File)                 0008                                .PCX Logo file to be used on the cover page of the fax (DOS                        (FAX Logo File)                 0009                                format).                                                                           (FAX Logo File)                 0010                                                                                                                   (FAX Logo File)                 0011                              Example:                                                                             (FAX Logo File)                 0012                                                                                                                   (FAX Logo File)                 0013                                PRINT (1) (FAX Logo File="C:\GRAPHICS\LOGO.PCX")                                   (FAX No Cover Page)             0001                              Mnemonic:                                                                            (FAX No Cover Page)             0002                                                                                                                   (FAX No Cover Page)             0003                                (FAX No Cover Page)                                                                (FAX No Cover Page)             0004                                                                                                                   (FAX No Cover Page)             0005                              Description:                                                                         (FAX No Cover Page)             0006                                                                                                                   (FAX No Cover Page)             0007                                This control disables the cover page in the facsimile.                             (FAX No Cover Page)             0008                                                                                                                   (FAX No Cover Page)             0009                              Example:                                                                             (FAX No Cover Page)             0010                                                                                                                   (FAX No Cover Page)             0011                                PRINT (1) (FAX No Cover Page)                                                      (FAX No Delete)                 0001                              Mnemonic:                                                                            (FAX No Delete)                 0002                                                                                                                   (FAX No Delete)                 0003                                (FAX No Delete)                                                                    (FAX No Delete)                 0004                                                                                                                   (FAX No Delete)                 0005                              Description:                                                                         (FAX No Delete)                 0006                                                                                                                   (FAX No Delete)                 0007                                This control saves facsimile documents even upon transmission.                     (FAX No Delete)                 0008                                                                                                                   (FAX No Delete)                 0009                              Example:                                                                             (FAX No Delete)                 0010                                                                                                                   (FAX No Delete)                 0011                                PRINT (1) (FAX No Delete)                                                          (FAX No Page Headers)           0001                              Mnemonic:                                                                            (FAX No Page Headers)           0002                                                                                                                   (FAX No Page Headers)           0003                                (FAX No Page Headers)                                                              (FAX No Page Headers)           0004                                                                                                                   (FAX No Page Headers)           0005                              Description:                                                                         (FAX No Page Headers)           0006                                                                                                                   (FAX No Page Headers)           0007                                This control disables page headers in the facsimile.                               (FAX No Page Headers)           0008                                                                                                                   (FAX No Page Headers)           0009                                Also see <(FAX Page Headers)>.                                                     (FAX No Page Headers)           0010                                                                                                                   (FAX No Page Headers)           0011                              Example:                                                                             (FAX No Page Headers)           0012                                                                                                                   (FAX No Page Headers)           0013                                PRINT (1) (FAX No Page Headers)                                                    (FAX Normal Resolution)         0001                              Mnemonic:                                                                            (FAX Normal Resolution)         0002                                                                                                                   (FAX Normal Resolution)         0003                                (FAX Normal Resolution)                                                            (FAX Normal Resolution)         0004                                                                                                                   (FAX Normal Resolution)         0005                              Description:                                                                         (FAX Normal Resolution)         0006                                                                                                                   (FAX Normal Resolution)         0007                                This control transmits the facsimile in normal resolution mode                     (FAX Normal Resolution)         0008                                (98 lines per inch).                                                               (FAX Normal Resolution)         0009                                                                                                                   (FAX Normal Resolution)         0010                                Also see <(FAX Fine Resolution)>.                                                  (FAX Normal Resolution)         0011                                                                                                                   (FAX Normal Resolution)         0012                              Example:                                                                             (FAX Normal Resolution)         0013                                                                                                                   (FAX Normal Resolution)         0014                                PRINT (1) (FAX Normal Resolution)                                                  (FAX PCX File)                  0001                              Mnemonic:                                                                            (FAX PCX File)                  0002                                                                                                                   (FAX PCX File)                  0003                                (FAX PCX File=ARG1$)                                                               (FAX PCX File)                  0004                                                                                                                   (FAX PCX File)                  0005                              Description:                                                                         (FAX PCX File)                  0006                                                                                                                   (FAX PCX File)                  0007                                ARG1$ is a 79-character string that specifies the path and name                    (FAX PCX File)                  0008                                of the .PCX file to be sent as the fax (DOS format).                               (FAX PCX File)                  0009                                                                                                                   (FAX PCX File)                  0010                              Example:                                                                             (FAX PCX File)                  0011                                                                                                                   (FAX PCX File)                  0012                                PRINT (1) (FAX PCX File="C:\GRAPHICS\DRAWING.PCX")                                 (FAX Page Headers)              0001                              Mnemonic:                                                                            (FAX Page Headers)              0002                                                                                                                   (FAX Page Headers)              0003                                (FAX Page Headers)                                                                 (FAX Page Headers)              0004                                                                                                                   (FAX Page Headers)              0005                              Description:                                                                         (FAX Page Headers)              0006                                                                                                                   (FAX Page Headers)              0007                                This control enables page headers in the facsimile.                                (FAX Page Headers)              0008                                                                                                                   (FAX Page Headers)              0009                                Also see <(FAX No Page Headers)>.                                                  (FAX Page Headers)              0010                                                                                                                   (FAX Page Headers)              0011                              Example:                                                                             (FAX Page Headers)              0012                                                                                                                   (FAX Page Headers)              0013                                PRINT (1) (FAX Page Headers)                                                       (FAX Phone)                     0001                              Mnemonic:                                                                            (FAX Phone)                     0002                                                                                                                   (FAX Phone)                     0003                                (FAX Phone=ARG1$)                                                                  (FAX Phone)                     0004                                                                                                                   (FAX Phone)                     0005                              Description:                                                                         (FAX Phone)                     0006                                                                                                                   (FAX Phone)                     0007                                ARG1$ is a 46-character string that specifies the phone number of                  (FAX Phone)                     0008                                the destination fax machine to which the fax will be sent.                         (FAX Phone)                     0009                                                                                                                   (FAX Phone)                     0010                              Example:                                                                             (FAX Phone)                     0011                                                                                                                   (FAX Phone)                     0012                                PRINT (1) (FAX Phone="1-999-555-1212")                                             (FAX Send Date)                 0001                              Mnemonic:                                                                            (FAX Send Date)                 0002                                                                                                                   (FAX Send Date)                 0003                                (FAX Send Date=ARG1$)                                                              (FAX Send Date)                 0004                                                                                                                   (FAX Send Date)                 0005                              Description:                                                                         (FAX Send Date)                 0006                                                                                                                   (FAX Send Date)                 0007                                ARG1$ is an 8-character string in the format "MM/DD/YY" that                       (FAX Send Date)                 0008                                specifies the date on which to send the document. A null value                     (FAX Send Date)                 0009                                indicates the current date.                                                        (FAX Send Date)                 0010                                                                                                                   (FAX Send Date)                 0011                                Also see <(FAX Send Time)>.                                                        (FAX Send Date)                 0012                                                                                                                   (FAX Send Date)                 0013                              Example:                                                                             (FAX Send Date)                 0014                                                                                                                   (FAX Send Date)                 0015                                PRINT (1) (FAX Send Date="12/31/99")                                               (FAX Send Time)                 0001                              Mnemonic:                                                                            (FAX Send Time)                 0002                                                                                                                   (FAX Send Time)                 0003                                (FAX Send Time=ARG1$)                                                              (FAX Send Time)                 0004                                                                                                                   (FAX Send Time)                 0005                              Description:                                                                         (FAX Send Time)                 0006                                                                                                                   (FAX Send Time)                 0007                                ARG1$ is a 5-character string in the format "HH:MM" that                           (FAX Send Time)                 0008                                specifies the time of day to send the fax. A null value indicates                  (FAX Send Time)                 0009                                the current time.                                                                  (FAX Send Time)                 0010                                                                                                                   (FAX Send Time)                 0011                                Also see <(FAX Send Date)>.                                                        (FAX Send Time)                 0012                                                                                                                   (FAX Send Time)                 0013                              Example:                                                                             (FAX Send Time)                 0014                                                                                                                   (FAX Send Time)                 0015                                PRINT (1) (FAX Send Time="11:30")                                                  (FAX Submit Job)                0001                              Mnemonic:                                                                            (FAX Submit Job)                0002                                                                                                                   (FAX Submit Job)                0003                                (FAX Submit Job)                                                                   (FAX Submit Job)                0004                                                                                                                   (FAX Submit Job)                0005                              Description:                                                                         (FAX Submit Job)                0006                                                                                                                   (FAX Submit Job)                0007                                This control passes the completed fax to the CAS Manager, and                      (FAX Submit Job)                0008                                returns the CAS event handle on the next READ/INPUT.                               (FAX Submit Job)                0009                                                                                                                   (FAX Submit Job)                0010                              Example:                                                                             (FAX Submit Job)                0011                                                                                                                   (FAX Submit Job)                0012                                PRINT (1) (FAX Submit Job)                                                         (FAX Text File)                 0001                              Mnemonic:                                                                            (FAX Text File)                 0002                                                                                                                   (FAX Text File)                 0003                                (FAX Text File=ARG1$)                                                              (FAX Text File)                 0004                                                                                                                   (FAX Text File)                 0005                              Description:                                                                         (FAX Text File)                 0006                                                                                                                   (FAX Text File)                 0007                                ARG1$ is a 79-character string that specifies the path to the                      (FAX Text File)                 0008                                text file to be sent as the facsimile.                                             (FAX Text File)                 0009                                                                                                                   (FAX Text File)                 0010                              Example:                                                                             (FAX Text File)                 0011                                                                                                                   (FAX Text File)                 0012                                PRINT (1) (FAX Text File="C:\FINANCE\REPORT.TXT")                                  (FAX To)                        0001                              Mnemonic:                                                                            (FAX To)                        0002                                                                                                                   (FAX To)                        0003                                (FAX To=ARG1$)                                                                     (FAX To)                        0004                                                                                                                   (FAX To)                        0005                              Description:                                                                         (FAX To)                        0006                                                                                                                   (FAX To)                        0007                                ARG1$ is a 31-character string that specifies the contents of the                  (FAX To)                        0008                                TO field on the cover page of the fax.                                             (FAX To)                        0009                                                                                                                   (FAX To)                        0010                                Also see <(FAX From)>.                                                             (FAX To)                        0011                                                                                                                   (FAX To)                        0012                              Example:                                                                             (FAX To)                        0013                                                                                                                   (FAX To)                        0014                                PRINT (1) (FAX To="Recepient's name here")                                         (FAX Write Config)              0001                              Mnemonic:                                                                            (FAX Write Config)              0002                                                                                                                   (FAX Write Config)              0003                                (FAX Write Config=ARG1$)                                                           (FAX Write Config)              0004                                                                                                                   (FAX Write Config)              0005                              Description:                                                                         (FAX Write Config)              0006                                                                                                                   (FAX Write Config)              0007                                ARG1$ is a 79-character string that specifies the path and file                    (FAX Write Config)              0008                                name (DOS format) to which to write the current fax controls.                      (FAX Write Config)              0009                                Must be written before the fax device is closed.                                   (FAX Write Config)              0010                                                                                                                   (FAX Write Config)              0011                                Also see <(FAX Config File)>.                                                      (FAX Write Config)              0012                                                                                                                   (FAX Write Config)              0013                              Example:                                                                             (FAX Write Config)              0014                                                                                                                   (FAX Write Config)              0015                                (FAX Write Config="C:\FAX\FAXFILE.DAT")                                            (FF)                            0001  Form Feed                   Mnemonic:                                                                            (FF)                            0002  Form Feed                                                                                                        (FF)                            0003  Form Feed                     (FF)                                                                               (FF)                            0004  Form Feed                                                                                                        (FF)                            0005  Form Feed                   Discussion:                                                                          (FF)                            0006  Form Feed                                                                                                        (FF)                            0007  Form Feed                     The (FF) control code causes the printer to skip to the top of                     (FF)                            0008  Form Feed                     the next page.                                                                     (FF)                            0009  Form Feed                                                                                                        (FF)                            0010  Form Feed                   Example:                                                                             (FF)                            0011  Form Feed                                                                                                        (FF)                            0012  Form Feed                     a. 100 FORMAT (FF)                                                                 (FF)                            0013  Form Feed                        .                                                                               (FF)                            0014  Form Feed                        OPEN (1) "LP1"                                                                  (FF)                            0015  Form Feed                        .                                                                               (FF)                            0016  Form Feed                        PRINT (1,100)                                                                   (FF)                            0017  Form Feed                                                                                                        (FF)                            0018  Form Feed                                                                                                        (FF)                            0019  Form Feed                     b. OPEN (1) "LP1"                                                                  (FF)                            0020  Form Feed                        .                                                                               (FF)                            0021  Form Feed                        PRINT (1) (FF)                                                                  (FF)                            0022  Form Feed                                                                                                        (FF)                            0023  Form Feed                     This example shows how to perform a form feed operation on the                     (FF)                            0024  Form Feed                     printer named LP1.                                                                 (FF)                            0025  Form Feed                                                                                                        (FT)                            0001  Force Transmit              Mnemonic:                                                                            (FT)                            0002  Force Transmit                                                                                                   (FT)                            0003  Force Transmit                (FT)                                                                               (FT)                            0004  Force Transmit                                                                                                   (FT)                            0005  Force Transmit              Hex equivalent:                                                                      (FT)                            0006  Force Transmit                                                                                                   (FT)                            0007  Force Transmit                "@0408@"                                                                           (FT)                            0008  Force Transmit                                                                                                   (FT)                            0009  Force Transmit              Discussion:                                                                          (FT)                            0010  Force Transmit                                                                                                   (FT)                            0011  Force Transmit                The (FT) control code causes the video device to set read                          (FT)                            0012  Force Transmit                request. The video device responds as though the operator pressed                  (FT)                            0013  Force Transmit                the transmit key.                                                                  (FT)                            0014  Force Transmit                                                                                                   (FT)                            0015  Force Transmit                This control code should be placed in a write format that occurs                   (FT)                            0016  Force Transmit                just before a READ or INPUT statement in the program.                              (FT)                            0017  Force Transmit                                                                                                   (FT)                            0018  Force Transmit              Example:                                                                             (FT)                            0019  Force Transmit                                                                                                   (FT)                            0020  Force Transmit                100 FORMAT (FT)                                                                    (FT)                            0021  Force Transmit                .                                                                                  (FT)                            0022  Force Transmit                PRINT (0,100)                                                                      (FT)                            0023  Force Transmit                INPUT (0) ANSWER$                                                                  (FT)                            0024  Force Transmit                                                                                                   (FT)                            0025  Force Transmit                In this example, the force transmit control code is used to force                  (FT)                            0026  Force Transmit                the transmission of a value for the ANSWER$ variable.                              (Force Close)                   0001                              Mnemonic:                                                                            (Force Close)                   0002                                                                                                                   (Force Close)                   0003                                (Force Close)                                                                      (Force Logout)                  0001                              Mnemonic:                                                                            (Force Logout)                  0002                                                                                                                   (Force Logout)                  0003                                (Force Logout)                                                                     (Full Scan Codes Passed)        0001                              Mnemonic:                                                                            (Full Scan Codes Passed)        0002                                                                                                                   (Full Scan Codes Passed)        0003                                (Full Scan Codes Passed)                                                           (Full Scan Codes Passed)        0004                                                                                                                   (Full Scan Codes Passed)        0005                              Hex equivalent:                                                                      (Full Scan Codes Passed)        0006                                                                                                                   (Full Scan Codes Passed)        0007                                "@0E000E@"                                                                         (Full Scan Codes Passed)        0008                                                                                                                   (Full Scan Codes Passed)        0009                              Discussion:                                                                          (Full Scan Codes Passed)        0010                                                                                                                   (Full Scan Codes Passed)        0011                                This mnemonic turns on "full scan code mode." In this mode, the                    (Full Scan Codes Passed)        0012                                complete list of keyboard scan codes are sent to the MTB program.                  (Full Scan Codes Passed)        0013                                                                                                                   (Full Scan Codes Passed)        0014                                See <Full Scan Codes,#HELPMT6> for a complete list of codes.                       (Full Scan Codes Passed)        0015                                                                                                                   (Full Scan Codes Passed)        0016                                This mode is turned off with the <(Scan Codes Off)> mnemonic.                      (Full Scan Codes Passed)        0017                                                                                                                   (Full Scan Codes Passed)        0018                                Also see the following references:                                                 (Full Scan Codes Passed)        0019                                <(Partial Scan Codes On)>                                                          (Full Scan Codes Passed)        0020                                <(Partial Scan Codes Off)>                                                         (Full Scan Codes Passed)        0021                                                                                                                   (Full Scan Codes Passed)        0022                              Example:                                                                             (Full Scan Codes Passed)        0023                                                                                                                   (Full Scan Codes Passed)        0024                                a. 100 FORMAT (Full Scan Codes Passed)                                             (Full Scan Codes Passed)        0025                                   .                                                                               (Full Scan Codes Passed)        0026                                   PRINT (0,100                                                                    (Full Scan Codes Passed)        0027                                                                                                                   (Full Scan Codes Passed)        0028                                b. PRINT (0) (Full Scan Codes Passed)                                              (Get Connection Info)           0001                              Mnemonic:                                                                            (Get Connection Info)           0002                                                                                                                   (Get Connection Info)           0003                                (Get Connection Info)                                                              (Get Extract Info)              0001                              Mnemonic:                                                                            (Get Extract Info)              0002                                                                                                                   (Get Extract Info)              0003                                (Get Extract Info)                                                                 (Get Server Time)               0001                              Mnemonic:                                                                            (Get Server Time)               0002                                                                                                                   (Get Server Time)               0003                                (Get Server Time)                                                                  (Hide Cursor)                   0001                              Mnemonic:                                                                            (Hide Cursor)                   0002                                                                                                                   (Hide Cursor)                   0003                                (Hide Cursor)                                                                      (Hide Cursor)                   0004                                                                                                                   (Hide Cursor)                   0005                              Discussion:                                                                          (Hide Cursor)                   0006                                                                                                                   (Hide Cursor)                   0007                                This mnemonic hides the regular cursor.                                            (Hide Cursor)                   0008                                                                                                                   (Hide Cursor)                   0009                                See <Regular cursor display,#HELPMT5> for more information.                        (Hide Cursor)                   0010                                                                                                                   (Hide Cursor)                   0011                                Also see <(Show cursor)>.                                                          (Hide Cursor)                   0012                                                                                                                   (Hide Cursor)                   0013                              Example:                                                                             (Hide Cursor)                   0014                                                                                                                   (Hide Cursor)                   0015                                a. 100 FORMAT (Hide Cursor)                                                        (Hide Cursor)                   0016                                   .                                                                               (Hide Cursor)                   0017                                   PRINT (0,100)                                                                   (Hide Cursor)                   0018                                                                                                                   (Hide Cursor)                   0019                                b. PRINT (0) (Hide Cursor)                                                         (Hide Mouse Cursor)             0001                              Mnemonic:                                                                            (Hide Mouse Cursor)             0002                                                                                                                   (Hide Mouse Cursor)             0003                                (Hide Mouse Cursor)                                                                (Hide Mouse Cursor)             0004                                                                                                                   (Hide Mouse Cursor)             0005                              Description:                                                                         (Hide Mouse Cursor)             0006                                                                                                                   (Hide Mouse Cursor)             0007                                This control hides the mouse cursor, and is intended for touch-                    (Hide Mouse Cursor)             0008                                sensitive screens.                                                                 (Hide Mouse Cursor)             0009                                                                                                                   (Hide Mouse Cursor)             0010                                Also see <(Show Mouse Cursor)>.                                                    (Hide Mouse Cursor)             0011                                                                                                                   (Hide Mouse Cursor)             0012                              Example:                                                                             (Hide Mouse Cursor)             0013                                                                                                                   (Hide Mouse Cursor)             0014                                a. 100 FORMAT (Hide Mouse Cursor)                                                  (Hide Mouse Cursor)             0015                                   .                                                                               (Hide Mouse Cursor)             0016                                   PRINT (0,100)                                                                   (Hide Mouse Cursor)             0017                                                                                                                   (Hide Mouse Cursor)             0018                                b. PRINT (0) (Hide Mouse Cursor)                                                   (Insert Off)                    0001                              Mnemonic:                                                                            (Insert Off)                    0002                                                                                                                   (Insert Off)                    0003                                (Insert Off)                                                                       (Insert Off)                    0004                                                                                                                   (Insert Off)                    0005                              Example:                                                                             (Insert Off)                    0006                                                                                                                   (Insert Off)                    0007                                a. 100 FORMAT (Insert Off)                                                         (Insert Off)                    0008                                   .                                                                               (Insert Off)                    0009                                   PRINT (0,100                                                                    (Insert Off)                    0010                                                                                                                   (Insert Off)                    0011                                b. PRINT (0) (Insert Off)                                                          (Insert On)                     0001                              Mnemonic:                                                                            (Insert On)                     0002                                                                                                                   (Insert On)                     0003                                (Insert On)                                                                        (Insert On)                     0004                                                                                                                   (Insert On)                     0005                              Example:                                                                             (Insert On)                     0006                                                                                                                   (Insert On)                     0007                                a. 100 FORMAT (Insert Off)                                                         (Insert On)                     0008                                   .                                                                               (Insert On)                     0009                                   PRINT (0,100                                                                    (Insert On)                     0010                                                                                                                   (Insert On)                     0011                                b. PRINT (0) (Insert Off)                                                          (Invoke HELP)                   0001                              Mnemonic:                                                                            (Invoke HELP)                   0002                                                                                                                   (Invoke HELP)                   0003                                (Invoke HELP)                                                                      (Invoke HELP)                   0004                                                                                                                   (Invoke HELP)                   0005                              Hex equivalent:                                                                      (Invoke HELP)                   0006                                                                                                                   (Invoke HELP)                   0007                                "@0E01@"                                                                           (Invoke HELP)                   0008                                                                                                                   (Invoke HELP)                   0009                              Discussion:                                                                          (Invoke HELP)                   0010                                                                                                                   (Invoke HELP)                   0011                                This mnemonic is used in conjunction with the <NOVA,#HELPMT5>                      (Invoke HELP)                   0012                                system (i.e., the Comet Help System).                                              (Invoke HELP)                   0013                                                                                                                   (Invoke HELP)                   0014                                The (Invoke HELP) mnemonic sets a flag within Comet. At the next                   (Invoke HELP)                   0015                                INPUT statement in the program, this flag is examined; if the                      (Invoke HELP)                   0016                                flag is on, Comet reads the #NOVA control file and takes the                       (Invoke HELP)                   0017                                action specified in the "automatic help" record.                                   (Invoke HELP)                   0018                                                                                                                   (Invoke HELP)                   0019                                The result is a "pop-up" help feature, where a help action will                    (Invoke HELP)                   0020                                occur automatically at a given INPUT prompt without the operator                   (Invoke HELP)                   0021                                pressing one of the NOVA function keys.                                            (Invoke HELP)                   0022                                                                                                                   (Invoke HELP)                   0023                                The (Invoke HELP) control remains in effect only for the                           (Invoke HELP)                   0024                                following INPUT statement (i.e., the auto help flag is turned off                  (Invoke HELP)                   0025                                when automatic help is invoked). To use this feature repeatedly,                   (Invoke HELP)                   0026                                you must use the (Invoke HELP) mnemonic repeatedly.                                (Invoke HELP)                   0027                                                                                                                   (Invoke HELP)                   0028                              Example:                                                                             (Invoke HELP)                   0029                                                                                                                   (Invoke HELP)                   0030                                PRINT (0) (Invoke HELP)     ! Set the automatic help flag                          (Invoke HELP)                   0031                                .                                                                                  (Invoke HELP)                   0032                                INPUT (0) WHATEVER$         ! Perform the automatic help action                    (Invoke HELP)                   0033                                                            ! as specified in the #NOVA control                    (Invoke HELP)                   0034                                                            ! file, then return to this INPUT                      (Invoke HELP)                   0035                                                            ! statement                                            (LD)                            0001  Line Delete                 Mnemonic:                                                                            (LD)                            0002  Line Delete                                                                                                      (LD)                            0003  Line Delete                   (LD)                                                                               (LD)                            0004  Line Delete                                                                                                      (LD)                            0005  Line Delete                 Hex equivalent:                                                                      (LD)                            0006  Line Delete                                                                                                      (LD)                            0007  Line Delete                   "@040A@"                                                                           (LD)                            0008  Line Delete                                                                                                      (LD)                            0009  Line Delete                 Discussion:                                                                          (LD)                            0010  Line Delete                                                                                                      (LD)                            0011  Line Delete                   The (LD) control code deletes a single line from the video                         (LD)                            0012  Line Delete                   display. All lines below the current cursor position are moved up                  (LD)                            0013  Line Delete                   one line overwriting the entire cursor line. A blank foreground                    (LD)                            0014  Line Delete                   line is inserted at the bottom of the screen. The cursor is                        (LD)                            0015  Line Delete                   inserted at the beginning (left side) of the just-inserted blank                   (LD)                            0016  Line Delete                   line.                                                                              (LD)                            0017  Line Delete                                                                                                      (LD)                            0018  Line Delete                 Example:                                                                             (LD)                            0019  Line Delete                                                                                                      (LD)                            0020  Line Delete                   a. 100 FORMAT (LD)                                                                 (LD)                            0021  Line Delete                      .                                                                               (LD)                            0022  Line Delete                      PRINT (0,100)                                                                   (LD)                            0023  Line Delete                                                                                                      (LD)                            0024  Line Delete                   b. PRINT (0) (LD)                                                                  (LD)                            0025  Line Delete                                                                                                      (LD)                            0026  Line Delete                   This example shows how to delete a single line from the screen                     (LD)                            0027  Line Delete                   display.                                                                           (LF)                            0001  Line Feed                   Mnemonic:                                                                            (LF)                            0002  Line Feed                                                                                                        (LF)                            0003  Line Feed                     (LF)                                                                               (LF)                            0004  Line Feed                                                                                                        (LF)                            0005  Line Feed                   Discussion:                                                                          (LF)                            0006  Line Feed                                                                                                        (LF)                            0007  Line Feed                     The (LF) control code advances the paper one line. If issued at                    (LF)                            0008  Line Feed                     the beginning of a line, this control skips that line and moves                    (LF)                            0009  Line Feed                     to the next line. If issued in the middle of a print line, (LF)                    (LF)                            0010  Line Feed                     skips the next line on the page and moves two lines below the                      (LF)                            0011  Line Feed                     line where issued.                                                                 (LF)                            0012  Line Feed                                                                                                        (LF)                            0013  Line Feed                   Example:                                                                             (LF)                            0014  Line Feed                                                                                                        (LF)                            0015  Line Feed                     a. 100 FORMAT "CUSTOMER HISTORY REPORT";(LF); etc.                                 (LF)                            0016  Line Feed                        .                                                                               (LF)                            0017  Line Feed                        OPEN (1) "LP1"                                                                  (LF)                            0018  Line Feed                        .                                                                               (LF)                            0019  Line Feed                        PRINT (1,100)                                                                   (LF)                            0020  Line Feed                                                                                                        (LF)                            0021  Line Feed                     b. OPEN (1) "LP1"                                                                  (LF)                            0022  Line Feed                        .                                                                               (LF)                            0023  Line Feed                        PRINT (1) "CUSTOMER HISTORY REPORT";(LF); etc.                                  (LF)                            0024  Line Feed                                                                                                        (LF)                            0025  Line Feed                     This example prints a heading on the printer named LP1, then uses                  (LF)                            0026  Line Feed                     the line feed control code to skip a line. Since the control code                  (LF)                            0027  Line Feed                     was issued in the middle of a print line, the printer will skip                    (LF)                            0028  Line Feed                     the next line and move two lines below the line where the (LF)                     (LF)                            0029  Line Feed                     was issued.                                                                        (LI)                            0001  Line Insert                 Mnemonic:                                                                            (LI)                            0002  Line Insert                                                                                                      (LI)                            0003  Line Insert                   (LI)                                                                               (LI)                            0004  Line Insert                                                                                                      (LI)                            0005  Line Insert                 Hex equivalent:                                                                      (LI)                            0006  Line Insert                                                                                                      (LI)                            0007  Line Insert                   "@040B@"                                                                           (LI)                            0008  Line Insert                                                                                                      (LI)                            0009  Line Insert                 Discussion:                                                                          (LI)                            0010  Line Insert                                                                                                      (LI)                            0011  Line Insert                   The (LI) control code inserts a single line in the video display.                  (LI)                            0012  Line Insert                   The cursor line and all lines below the cursor line are moved                      (LI)                            0013  Line Insert                   down one line. The bottom display line is lost. A blank                            (LI)                            0014  Line Insert                   foreground line is inserted at the location of the original                        (LI)                            0015  Line Insert                   cursor line. The cursor is positioned at the beginning of the                      (LI)                            0016  Line Insert                   inserted blank line.                                                               (LI)                            0017  Line Insert                                                                                                      (LI)                            0018  Line Insert                 Example:                                                                             (LI)                            0019  Line Insert                                                                                                      (LI)                            0020  Line Insert                   a. 100 FORMAT (LI)                                                                 (LI)                            0021  Line Insert                      .                                                                               (LI)                            0022  Line Insert                      PRINT (0,100)                                                                   (LI)                            0023  Line Insert                                                                                                      (LI)                            0024  Line Insert                   b. PRINT (0) (LI)                                                                  (LI)                            0025  Line Insert                                                                                                      (LI)                            0026  Line Insert                   This example shows how to insert a blank line on the screen                        (LI)                            0027  Line Insert                   display.                                                                           (LS)                            0001  Linefeed Suppress           Mnemonic:                                                                            (LS)                            0002  Linefeed Suppress                                                                                                (LS)                            0003  Linefeed Suppress             (LS)                                                                               (LS)                            0004  Linefeed Suppress                                                                                                (LS)                            0005  Linefeed Suppress           Discussion:                                                                          (LS)                            0006  Linefeed Suppress                                                                                                (LS)                            0007  Linefeed Suppress             The (LS) control code suppresses the line feed for the current                     (LS)                            0008  Linefeed Suppress             print line. Subsequent data written to the printer will not be                     (LS)                            0009  Linefeed Suppress             followed by an automatic line feed. The control is normally used                   (LS)                            0010  Linefeed Suppress             to overstrike, make bold characters, or underscore portions of a                   (LS)                            0011  Linefeed Suppress             print line. The (LS) control is in effect only for current print                   (LS)                            0012  Linefeed Suppress             line and must be used at the beginning of the FORMAT statement.                    (LS)                            0013  Linefeed Suppress                                                                                                (LS)                            0014  Linefeed Suppress           Example:                                                                             (LS)                            0015  Linefeed Suppress                                                                                                (LS)                            0016  Linefeed Suppress             100     FORMAT (LS);"CUSTOMER HISTORY REPORT",@(0);_                               (LS)                            0017  Linefeed Suppress                     (CR);"CUSTOMER HISTORY REPORT",@(0)                                        (LS)                            0018  Linefeed Suppress                     .                                                                          (LS)                            0019  Linefeed Suppress                     OPEN (1) "LP1"                                                             (LS)                            0020  Linefeed Suppress                     .                                                                          (LS)                            0021  Linefeed Suppress                     PRINT (1,100)                                                              (LS)                            0022  Linefeed Suppress                                                                                                (LS)                            0023  Linefeed Suppress             This example uses the linefeed suppress control code to double                     (LS)                            0024  Linefeed Suppress             strike the heading for a report. The (LS) control code is placed                   (LS)                            0025  Linefeed Suppress             at the beginning of a FORMAT statement, followed by the heading                    (LS)                            0026  Linefeed Suppress             to be printed. The (CR) control code returns the print head to                     (LS)                            0027  Linefeed Suppress             the beginning of the line, but does not perform a line feed, due                   (LS)                            0028  Linefeed Suppress             to the (LS) control in effect. Finally, the report heading is                      (LS)                            0029  Linefeed Suppress             repeated, causing the printer to double strike the characters.                     (MC)                            0001  Remember Cursor position    Mnemonic:                                                                            (MC)                            0002  Remember Cursor position                                                                                         (MC)                            0003  Remember Cursor position      (MC)                                                                               (MC)                            0004  Remember Cursor position                                                                                         (MC)                            0005  Remember Cursor position    Hex equivalent:                                                                      (MC)                            0006  Remember Cursor position                                                                                         (MC)                            0007  Remember Cursor position      "@0401@"                                                                           (MC)                            0008  Remember Cursor position                                                                                         (MC)                            0009  Remember Cursor position    Discussion:                                                                          (MC)                            0010  Remember Cursor position                                                                                         (MC)                            0011  Remember Cursor position      The (MC) control code saves the current location of the cursor                     (MC)                            0012  Remember Cursor position      for subsequent use with the "restore cursor" control code. See                     (MC)                            0013  Remember Cursor position      Restore Cursor <(RC)>.                                                             (MC)                            0014  Remember Cursor position                                                                                         (MC)                            0015  Remember Cursor position    Example:                                                                             (MC)                            0016  Remember Cursor position                                                                                         (MC)                            0017  Remember Cursor position      a. 100 FORMAT (MC)                                                                 (MC)                            0018  Remember Cursor position         .                                                                               (MC)                            0019  Remember Cursor position         PRINT (0,100)                                                                   (MC)                            0020  Remember Cursor position                                                                                         (MC)                            0021  Remember Cursor position      b. PRINT (0) (MC)                                                                  (MC)                            0022  Remember Cursor position                                                                                         (MC)                            0023  Remember Cursor position      This example shows how to use the remember cursor control code.                    (MC)                            0024  Remember Cursor position      When the PRINT statement is executed, the current position of the                  (MC)                            0025  Remember Cursor position      cursor will be saved by Comet. Subsequently, the cursor can be                     (MC)                            0026  Remember Cursor position      repositioned to this location with the (RC) control code.                          (Mouse Off)                     0001                              Mnemonic:                                                                            (Mouse Off)                     0002                                                                                                                   (Mouse Off)                     0003                                (Mouse Off)                                                                        (Mouse Off)                     0004                                                                                                                   (Mouse Off)                     0005                              Description:                                                                         (Mouse Off)                     0006                                                                                                                   (Mouse Off)                     0007                                This control closes the mouse driver.                                              (Mouse Off)                     0008                                                                                                                   (Mouse Off)                     0009                                Also see <(Mouse On)>.                                                             (Mouse Off)                     0010                                                                                                                   (Mouse Off)                     0011                              Example:                                                                             (Mouse Off)                     0012                                                                                                                   (Mouse Off)                     0013                                a. 100 FORMAT (Mouse Off)                                                          (Mouse Off)                     0014                                   .                                                                               (Mouse Off)                     0015                                   PRINT (0,100)                                                                   (Mouse Off)                     0016                                                                                                                   (Mouse Off)                     0017                                b. PRINT (0) (Mouse Off)                                                           (Mouse On)                      0001                              Mnemonic:                                                                            (Mouse On)                      0002                                                                                                                   (Mouse On)                      0003                                (Mouse On)                                                                         (Mouse On)                      0004                                                                                                                   (Mouse On)                      0005                              Description:                                                                         (Mouse On)                      0006                                                                                                                   (Mouse On)                      0007                                This control open the default mouse driver (BIOS mouse or                          (Mouse On)                      0008                                enhanced mouse).                                                                   (Mouse On)                      0009                                                                                                                   (Mouse On)                      0010                                Also see <(BIOS Mouse On)> and <(Enhanced Mouse On)>.                              (Mouse On)                      0011                                                                                                                   (Mouse On)                      0012                              Example:                                                                             (Mouse On)                      0013                                                                                                                   (Mouse On)                      0014                                a. 100 FORMAT (Mouse On)                                                           (Mouse On)                      0015                                   .                                                                               (Mouse On)                      0016                                   PRINT (0,100)                                                                   (Mouse On)                      0017                                                                                                                   (Mouse On)                      0018                                b. PRINT (0) (Mouse On)                                                            (Partial Scan Codes Off)        0001                              Mnemonic:                                                                            (Partial Scan Codes Off)        0002                                                                                                                   (Partial Scan Codes Off)        0003                                (Partial Scan Codes Off)                                                           (Partial Scan Codes Off)        0004                                                                                                                   (Partial Scan Codes Off)        0005                              Hex equivalent:                                                                      (Partial Scan Codes Off)        0006                                                                                                                   (Partial Scan Codes Off)        0007                                "@0E0008@"                                                                         (Partial Scan Codes Off)        0008                                                                                                                   (Partial Scan Codes Off)        0009                              Discussion:                                                                          (Partial Scan Codes Off)        0010                                                                                                                   (Partial Scan Codes Off)        0011                                This mnemonic turns off "partial scan code mode."                                  (Partial Scan Codes Off)        0012                                                                                                                   (Partial Scan Codes Off)        0013                                This mode is turned on with <(Partial Scan Codes On)>.                             (Partial Scan Codes Off)        0014                                                                                                                   (Partial Scan Codes Off)        0015                                Also see the following references:                                                 (Partial Scan Codes Off)        0016                                <(Full Scan Codes Passed)>                                                         (Partial Scan Codes Off)        0017                                <(Scan Codes Off)>                                                                 (Partial Scan Codes Off)        0018                                                                                                                   (Partial Scan Codes Off)        0019                              Example:                                                                             (Partial Scan Codes Off)        0020                                                                                                                   (Partial Scan Codes Off)        0021                                a. 100 FORMAT (Partial Scan Codes Off)                                             (Partial Scan Codes Off)        0022                                   .                                                                               (Partial Scan Codes Off)        0023                                   PRINT (0,100                                                                    (Partial Scan Codes Off)        0024                                                                                                                   (Partial Scan Codes Off)        0025                                b. PRINT (0) (Partial Scan Codes Off)                                              (Partial Scan Codes On)         0001                              Mnemonic:                                                                            (Partial Scan Codes On)         0002                                                                                                                   (Partial Scan Codes On)         0003                                (Partial Scan Codes On)                                                            (Partial Scan Codes On)         0004                                                                                                                   (Partial Scan Codes On)         0005                              Hex equivalent:                                                                      (Partial Scan Codes On)         0006                                                                                                                   (Partial Scan Codes On)         0007                                "@0E0007@"                                                                         (Partial Scan Codes On)         0008                                                                                                                   (Partial Scan Codes On)         0009                              Discussion:                                                                          (Partial Scan Codes On)         0010                                                                                                                   (Partial Scan Codes On)         0011                                In this mode, a partial list of keyboard scan codes are sent to                    (Partial Scan Codes On)         0012                                the MTB program.                                                                   (Partial Scan Codes On)         0013                                                                                                                   (Partial Scan Codes On)         0014                                See <Partial Scan Codes,#HELPMT6> for a list of these codes.                       (Partial Scan Codes On)         0015                                                                                                                   (Partial Scan Codes On)         0016                                This mode is turned off with <(Partial Scan Codes Off)>.                           (Partial Scan Codes On)         0017                                                                                                                   (Partial Scan Codes On)         0018                                Also see the following references:                                                 (Partial Scan Codes On)         0019                                <(Full Scan Codes Passed)>                                                         (Partial Scan Codes On)         0020                                <(Scan Codes Off)>                                                                 (Partial Scan Codes On)         0021                                                                                                                   (Partial Scan Codes On)         0022                              Example:                                                                             (Partial Scan Codes On)         0023                                                                                                                   (Partial Scan Codes On)         0024                                a. 100 FORMAT (Partial Scan Codes On)                                              (Partial Scan Codes On)         0025                                   .                                                                               (Partial Scan Codes On)         0026                                   PRINT (0,100                                                                    (Partial Scan Codes On)         0027                                                                                                                   (Partial Scan Codes On)         0028                                b. PRINT (0) (Partial Scan Codes On)                                               (RB)                            0001  Ring Bell                   Mnemonic:                                                                            (RB)                            0002  Ring Bell                                                                                                        (RB)                            0003  Ring Bell                     (RB)                                                                               (RB)                            0004  Ring Bell                                                                                                        (RB)                            0005  Ring Bell                   Hex equivalent:                                                                      (RB)                            0006  Ring Bell                                                                                                        (RB)                            0007  Ring Bell                     "@07@"                                                                             (RB)                            0008  Ring Bell                                                                                                        (RB)                            0009  Ring Bell                   Discussion:                                                                          (RB)                            0010  Ring Bell                                                                                                        (RB)                            0011  Ring Bell                     The (RB) control code causes the video device to beep.                             (RB)                            0012  Ring Bell                                                                                                        (RB)                            0013  Ring Bell                   Example:                                                                             (RB)                            0014  Ring Bell                                                                                                        (RB)                            0015  Ring Bell                     a. 100 FORMAT (RB)                                                                 (RB)                            0016  Ring Bell                        .                                                                               (RB)                            0017  Ring Bell                        PRINT (0,100)                                                                   (RB)                            0018  Ring Bell                                                                                                        (RB)                            0019  Ring Bell                     b. PRINT (0) (RB)                                                                  (RB)                            0020  Ring Bell                                                                                                        (RB)                            0021  Ring Bell                     This example shows how to use the (RB) control code.                               (RC)                            0001  Restore Cursor position     Mnemonic:                                                                            (RC)                            0002  Restore Cursor position                                                                                          (RC)                            0003  Restore Cursor position       (RC)                                                                               (RC)                            0004  Restore Cursor position                                                                                          (RC)                            0005  Restore Cursor position     Hex equivalent:                                                                      (RC)                            0006  Restore Cursor position                                                                                          (RC)                            0007  Restore Cursor position       "@09@"                                                                             (RC)                            0008  Restore Cursor position                                                                                          (RC)                            0009  Restore Cursor position     Discussion:                                                                          (RC)                            0010  Restore Cursor position                                                                                          (RC)                            0011  Restore Cursor position       The (RC) control code restores the cursor to its position at the                   (RC)                            0012  Restore Cursor position       beginning of the current write operation or at the location saved                  (RC)                            0013  Restore Cursor position       by the most recent "remember cursor" control code operation. See                   (RC)                            0014  Restore Cursor position       Remember Cursor <(MC)>.                                                            (RC)                            0015  Restore Cursor position                                                                                          (RC)                            0016  Restore Cursor position     Example:                                                                             (RC)                            0017  Restore Cursor position                                                                                          (RC)                            0018  Restore Cursor position       a. 100 FORMAT (RC)                                                                 (RC)                            0019  Restore Cursor position          .                                                                               (RC)                            0020  Restore Cursor position          PRINT (0,100)                                                                   (RC)                            0021  Restore Cursor position                                                                                          (RC)                            0022  Restore Cursor position       b. PRINT (0) (RC)                                                                  (RC)                            0023  Restore Cursor position                                                                                          (RC)                            0024  Restore Cursor position       This example shows how to return the cursor to its remembered                      (RC)                            0025  Restore Cursor position       position.                                                                          (RC)                            0026  Restore Cursor position                                                                                          (RD)                            0001  Roll Down                   Mnemonic:                                                                            (RD)                            0002  Roll Down                                                                                                        (RD)                            0003  Roll Down                     (RD)                                                                               (RD)                            0004  Roll Down                                                                                                        (RD)                            0005  Roll Down                   Hex equivalent:                                                                      (RD)                            0006  Roll Down                                                                                                        (RD)                            0007  Roll Down                     "@040B@"                                                                           (RD)                            0008  Roll Down                                                                                                        (RD)                            0009  Roll Down                   Discussion:                                                                          (RD)                            0010  Roll Down                                                                                                        (RD)                            0011  Roll Down                     The (RD) control code moves the entire screen display down one                     (RD)                            0012  Roll Down                     line, rolling the bottom line completely off the screen. It also                   (RD)                            0013  Roll Down                     inserts a blank foreground line at the top of the screen and                       (RD)                            0014  Roll Down                     moves the cursor to the beginning of the inserted blank line                       (RD)                            0015  Roll Down                     (i.e., the upper left corner of the screen). See Roll Up (RU).                     (RD)                            0016  Roll Down                                                                                                        (RD)                            0017  Roll Down                   Example:                                                                             (RD)                            0018  Roll Down                                                                                                        (RD)                            0019  Roll Down                     a. 100 FORMAT (RD)                                                                 (RD)                            0020  Roll Down                        .                                                                               (RD)                            0021  Roll Down                        PRINT (0,100)                                                                   (RD)                            0022  Roll Down                                                                                                        (RD)                            0023  Roll Down                     b. PRINT (0) (RD)                                                                  (RD)                            0024  Roll Down                                                                                                        (RD)                            0025  Roll Down                     This example shows how to roll the screen display down one line.                   (RJ)                            0001  Right Justify mark          Mnemonic:                                                                            (RJ)                            0002  Right Justify mark                                                                                               (RJ)                            0003  Right Justify mark            (RJ)                                                                               (RJ)                            0004  Right Justify mark                                                                                               (RJ)                            0005  Right Justify mark          Hex equivalent:                                                                      (RJ)                            0006  Right Justify mark                                                                                               (RJ)                            0007  Right Justify mark            "@0B@"                                                                             (RJ)                            0008  Right Justify mark                                                                                               (RJ)                            0009  Right Justify mark          Discussion:                                                                          (RJ)                            0010  Right Justify mark                                                                                               (RJ)                            0011  Right Justify mark            The (RJ) control code is used to specify a numeric data entry                      (RJ)                            0012  Right Justify mark            field. This code places a right justify mark at the current                        (RJ)                            0013  Right Justify mark            cursor location, taking one screen position and displayed in                       (RJ)                            0014  Right Justify mark            suppressed background (invisible) mode. It causes data in the                      (RJ)                            0015  Right Justify mark            following foreground field to be entered from right to left. The                   (RJ)                            0016  Right Justify mark            right justify mark must be placed immediately before the field                     (RJ)                            0017  Right Justify mark            for which it is intended.                                                          (RJ)                            0018  Right Justify mark                                                                                               (RJ)                            0019  Right Justify mark            Characteristics of a right-justified field:                                        (RJ)                            0020  Right Justify mark                                                                                               (RJ)                            0021  Right Justify mark            *  Field will accept numeric data only (digits, a decimal point,                   (RJ)                            0022  Right Justify mark               and a minus sign). Other keys will ring the bell and not be                     (RJ)                            0023  Right Justify mark               accepted.                                                                       (RJ)                            0024  Right Justify mark                                                                                               (RJ)                            0025  Right Justify mark            *  Cursor remains at the right-hand side of the field (the                         (RJ)                            0026  Right Justify mark               position for the minus sign) during data entry.                                 (RJ)                            0027  Right Justify mark                                                                                               (RJ)                            0028  Right Justify mark            *  Data is entered into the first position to the left of the                      (RJ)                            0029  Right Justify mark               cursor; the field is shifted left as each new character is                      (RJ)                            0030  Right Justify mark               entered.                                                                        (RJ)                            0031  Right Justify mark                                                                                               (RJ)                            0032  Right Justify mark            *  Only one decimal point is permitted in the field.                               (RJ)                            0033  Right Justify mark                                                                                               (RJ)                            0034  Right Justify mark            *  The Backspace key deletes characters, one at a time, and                        (RJ)                            0035  Right Justify mark               shifts the field to the right.                                                  (RJ)                            0036  Right Justify mark                                                                                               (RJ)                            0037  Right Justify mark            *  The Clear key sets the entire field to foreground blanks.                       (RJ)                            0038  Right Justify mark                                                                                               (RJ)                            0039  Right Justify mark            *  The + and - keys toggle the minus sign at the right-hand side                   (RJ)                            0040  Right Justify mark               of the field.                                                                   (RJ)                            0041  Right Justify mark                                                                                               (RJ)                            0042  Right Justify mark            *  Other text editing keys are not recognized.                                     (RJ)                            0043  Right Justify mark                                                                                               (RJ)                            0044  Right Justify mark          Example:                                                                             (RJ)                            0045  Right Justify mark                                                                                               (RJ)                            0046  Right Justify mark            100 FORMAT   (SB);_                   ! start background                           (RJ)                            0047  Right Justify mark                         "ENTER CREDIT LIMIT:";_  ! prompt                                     (RJ)                            0048  Right Justify mark                         (TM);_                   ! transmit mark                              (RJ)                            0049  Right Justify mark                         (RJ);_                   ! right justify mark                         (RJ)                            0050  Right Justify mark                         (SF);_                   ! start foreground                           (RJ)                            0051  Right Justify mark                         "          ";_           ! blank spaces                               (RJ)                            0052  Right Justify mark                         (TM);                    ! transmit mark                              (RJ)                            0053  Right Justify mark                         (CH)                     ! cursor home                                (RJ)                            0054  Right Justify mark            .                                                                                  (RJ)                            0055  Right Justify mark            PRINT (0,100)                                                                      (RJ)                            0056  Right Justify mark            INPUT (0) CRLIMIT                                                                  (RJ)                            0057  Right Justify mark                                                                                               (RJ)                            0058  Right Justify mark            This example shows how to use the right justify control code for                   (RJ)                            0059  Right Justify mark            a numeric data entry field (credit limit). Notice the placement                    (RJ)                            0060  Right Justify mark            of the transmit marks. Also notice the placement of the                            (RJ)                            0061  Right Justify mark            foreground blank spaces for the data entry field.                                  (RU)                            0001  Roll Up                     Mnemonic:                                                                            (RU)                            0002  Roll Up                                                                                                          (RU)                            0003  Roll Up                       (RU)                                                                               (RU)                            0004  Roll Up                                                                                                          (RU)                            0005  Roll Up                     Hex equivalent:                                                                      (RU)                            0006  Roll Up                                                                                                          (RU)                            0007  Roll Up                       "@040A@"                                                                           (RU)                            0008  Roll Up                                                                                                          (RU)                            0009  Roll Up                     Discussion:                                                                          (RU)                            0010  Roll Up                                                                                                          (RU)                            0011  Roll Up                       The (RU) control code moves the entire screen display up one                       (RU)                            0012  Roll Up                       line, rolling the top line completely off the screen. Inserts a                    (RU)                            0013  Roll Up                       blank foreground line at the bottom of the screen. Moves the                       (RU)                            0014  Roll Up                       cursor to the beginning of the inserted blank line (i.e., the                      (RU)                            0015  Roll Up                       lower left corner of the screen). See Roll Down (RD).                              (RU)                            0016  Roll Up                                                                                                          (RU)                            0017  Roll Up                     Example:                                                                             (RU)                            0018  Roll Up                                                                                                          (RU)                            0019  Roll Up                       a. 100 FORMAT (RU)                                                                 (RU)                            0020  Roll Up                          .                                                                               (RU)                            0021  Roll Up                          PRINT (0,100)                                                                   (RU)                            0022  Roll Up                                                                                                          (RU)                            0023  Roll Up                       b. PRINT (0) (RU)                                                                  (RU)                            0024  Roll Up                                                                                                          (RU)                            0025  Roll Up                       This example shows how to roll the screen display up one line.                     (Radio Button Off)              0001                              Mnemonic:                                                                            (Radio Button Off)              0002                                                                                                                   (Radio Button Off)              0003                                (Radio Button Off)                                                                 (Radio Button Off)              0004                                                                                                                   (Radio Button Off)              0005                              Hex equivalent:                                                                      (Radio Button Off)              0006                                                                                                                   (Radio Button Off)              0007                                "@CBC7B7@"                                                                         (Radio Button Off)              0008                                                                                                                   (Radio Button Off)              0009                              Discussion:                                                                          (Radio Button Off)              0010                                                                                                                   (Radio Button Off)              0011                                This mnemonic draws a graphical radio button on the screen. The                    (Radio Button Off)              0012                                radio button is in the "off" position.                                             (Radio Button Off)              0013                                                                                                                   (Radio Button Off)              0014                                The radio button symbol occupies 3 spaces on the screen.                           (Radio Button Off)              0015                                                                                                                   (Radio Button Off)              0016                                Note: The <(Enhanced Characters On)> mnemonic must be used before                  (Radio Button Off)              0017                                the (Radio Button Off) mnemonic us used.                                           (Radio Button Off)              0018                                                                                                                   (Radio Button Off)              0019                                Also see <(Radio Button On)>.                                                      (Radio Button Off)              0020                                                                                                                   (Radio Button Off)              0021                              Example:                                                                             (Radio Button Off)              0022                                                                                                                   (Radio Button Off)              0023                                a. 100 FORMAT (Radio Button Off)                                                   (Radio Button Off)              0024                                   .                                                                               (Radio Button Off)              0025                                   PRINT (0,100)                                                                   (Radio Button Off)              0026                                                                                                                   (Radio Button Off)              0027                                b. PRINT (0) (Radio Button Off)                                                    (Radio Button On)               0001                              Mnemonic:                                                                            (Radio Button On)               0002                                                                                                                   (Radio Button On)               0003                                (Radio Button On)                                                                  (Radio Button On)               0004                                                                                                                   (Radio Button On)               0005                              Hex equivalent:                                                                      (Radio Button On)               0006                                                                                                                   (Radio Button On)               0007                               "@CBCFB7@"                                                                          (Radio Button On)               0008                                                                                                                   (Radio Button On)               0009                              Discussion:                                                                          (Radio Button On)               0010                                                                                                                   (Radio Button On)               0011                                This mnemonic draws a graphical radio button on the screen. The                    (Radio Button On)               0012                                radio button is in the "on" position.                                              (Radio Button On)               0013                                                                                                                   (Radio Button On)               0014                                The radio button symbol occupies 3 spaces on the screen.                           (Radio Button On)               0015                                                                                                                   (Radio Button On)               0016                                Note: The <(Enhanced Characters On)> mnemonic must be used before                  (Radio Button On)               0017                                the (Radio Button On) mnemonic us used.                                            (Radio Button On)               0018                                                                                                                   (Radio Button On)               0019                                Also see <(Radio Button Off)>.                                                     (Radio Button On)               0020                                                                                                                   (Radio Button On)               0021                              Example:                                                                             (Radio Button On)               0022                                                                                                                   (Radio Button On)               0023                                a. 100 FORMAT (Radio Button On)                                                    (Radio Button On)               0024                                   .                                                                               (Radio Button On)               0025                                   PRINT (0,100)                                                                   (Radio Button On)               0026                                                                                                                   (Radio Button On)               0027                                b. PRINT (0) (Radio Button On)                                                     (Read Mouse)                    0001                              Mnemonic:                                                                            (Read Mouse)                    0002                                                                                                                   (Read Mouse)                    0003                                (Read Mouse)                                                                       (Read Mouse)                    0004                                                                                                                   (Read Mouse)                    0005                              Description:                                                                         (Read Mouse)                    0006                                                                                                                   (Read Mouse)                    0007                                This control reads the mouse data into input buffer.                               (Read Mouse)                    0008                                                                                                                   (Read Mouse)                    0009                                See <Reading the mouse,#HELPMT5> for more information.                             (Read Mouse)                    0010                                                                                                                   (Read Mouse)                    0011                              Example:                                                                             (Read Mouse)                    0012                                                                                                                   (Read Mouse)                    0013                                a. 100 FORMAT (Read Mouse)                                                         (Read Mouse)                    0014                                   .                                                                               (Read Mouse)                    0015                                   PRINT (0,100)                                                                   (Read Mouse)                    0016                                                                                                                   (Read Mouse)                    0017                                b. PRINT (0) (Read Mouse)                                                          (Request ID)                    0001                              Mnemonic:                                                                            (Request ID)                    0002                                                                                                                   (Request ID)                    0003                                (Request ID)                                                                       (Request ID)                    0004                                                                                                                   (Request ID)                    0005                              Hex equivalent:                                                                      (Request ID)                    0006                                                                                                                   (Request ID)                    0007                                "@040001@"                                                                         (Request ID)                    0008                                                                                                                   (Request ID)                    0009                              Discussion:                                                                          (Request ID)                    0010                                                                                                                   (Request ID)                    0011                                This mnemonic requests the QTerm workstation ID string.                            (Request ID)                    0012                                                                                                                   (Request ID)                    0013                              Example:                                                                             (Request ID)                    0014                                                                                                                   (Request ID)                    0015                                a. 100 FORMAT (Request ID)                                                         (Request ID)                    0016                                   .                                                                               (Request ID)                    0017                                   PRINT (0,100)                                                                   (Request ID)                    0018                                                                                                                   (Request ID)                    0019                                b. PRINT (0) (Request ID)                                                          (Restore Screen)                0001                              Mnemonic:                                                                            (Restore Screen)                0002                                                                                                                   (Restore Screen)                0003                                (Restore Screen)                                                                   (Restore Screen)                0004                                                                                                                   (Restore Screen)                0005                              Hex equivalent:                                                                      (Restore Screen)                0006                                                                                                                   (Restore Screen)                0007                                "@040004@"                                                                         (Restore Screen)                0008                                                                                                                   (Restore Screen)                0009                              Discussion:                                                                          (Restore Screen)                0010                                                                                                                   (Restore Screen)                0011                                This mnemonic restores a screen display that has been previously                   (Restore Screen)                0012                                saved with the <(Save Screen)> mnemonic.                                           (Restore Screen)                0013                                                                                                                   (Restore Screen)                0014                              Example:                                                                             (Restore Screen)                0015                                                                                                                   (Restore Screen)                0016                                a. 100 FORMAT (Restore Screen)                                                     (Restore Screen)                0017                                   .                                                                               (Restore Screen)                0018                                   PRINT (0,100                                                                    (Restore Screen)                0019                                                                                                                   (Restore Screen)                0020                                b. PRINT (0) (Restore Screen)                                                      (SB)                            0001  Start Background            Mnemonic:                                                                            (SB)                            0002  Start Background                                                                                                 (SB)                            0003  Start Background              (SB)                                                                               (SB)                            0004  Start Background                                                                                                 (SB)                            0005  Start Background            Hex equivalent:                                                                      (SB)                            0006  Start Background                                                                                                 (SB)                            0007  Start Background              "08@"                                                                              (SB)                            0008  Start Background                                                                                                 (SB)                            0009  Start Background            Discussion:                                                                          (SB)                            0010  Start Background                                                                                                 (SB)                            0011  Start Background              The (SB) control code sets background display mode and causes                      (SB)                            0012  Start Background              subsequent characters to be displayed as background (inverse                       (SB)                            0013  Start Background              video) characters. This is used for displaying data that is not                    (SB)                            0014  Start Background              expected to change, such as prompts and headings.                                  (SB)                            0015  Start Background                                                                                                 (SB)                            0016  Start Background              Characteristics of background mode:                                                (SB)                            0017  Start Background                                                                                                 (SB)                            0018  Start Background              *  Background fields are for display purposes only. Data cannot                    (SB)                            0019  Start Background                 be input from a background field.                                               (SB)                            0020  Start Background                                                                                                 (SB)                            0021  Start Background              *  Characters appear in inverse video.                                             (SB)                            0022  Start Background                                                                                                 (SB)                            0023  Start Background              *  The cursor cannot be positioned in a background field from the                  (SB)                            0024  Start Background                 keyboard. An attempt to position the cursor in a background                     (SB)                            0025  Start Background                 field with a FORMAT statement will cause the cursor to be                       (SB)                            0026  Start Background                 positioned in the next available foreground field.                              (SB)                            0027  Start Background                                                                                                 (SB)                            0028  Start Background              *  Background mode must be set in each FORMAT statement where it                   (SB)                            0029  Start Background                 is to be used. Unless set to background mode, the video device                  (SB)                            0030  Start Background                 will display data in foreground mode.                                           (SB)                            0031  Start Background                                                                                                 (SB)                            0032  Start Background              *  Foreground and background can be mixed in one FORMAT                            (SB)                            0033  Start Background                 statement, as long as the appropriate control codes (i.e.,                      (SB)                            0034  Start Background                 (SF) and (SB)) are used to start each operation.                                (SB)                            0035  Start Background                                                                                                 (SB)                            0036  Start Background            Example:                                                                             (SB)                            0037  Start Background                                                                                                 (SB)                            0038  Start Background              a. 100 FORMAT (SB);(BF),@(10,0)                                                    (SB)                            0039  Start Background                 .                                                                               (SB)                            0040  Start Background                 PRINT (0,100)                                                                   (SB)                            0041  Start Background                                                                                                 (SB)                            0042  Start Background              b. PRINT (0) (SB);(BF),@(10,0)                                                     (SB)                            0043  Start Background                                                                                                 (SB)                            0044  Start Background              This example sets the video mode to background (SB), and blank                     (SB)                            0045  Start Background              fills the top row of the screen (i.e., row 0) from position 10 to                  (SB)                            0046  Start Background              the end of the line.                                                               (SF)                            0001  Start Foreground            Mnemonic:                                                                            (SF)                            0002  Start Foreground                                                                                                 (SF)                            0003  Start Foreground              (SF)                                                                               (SF)                            0004  Start Foreground                                                                                                 (SF)                            0005  Start Foreground            Hex equivalent:                                                                      (SF)                            0006  Start Foreground                                                                                                 (SF)                            0007  Start Foreground              "@0A@"                                                                             (SF)                            0008  Start Foreground                                                                                                 (SF)                            0009  Start Foreground            Discussion:                                                                          (SF)                            0010  Start Foreground                                                                                                 (SF)                            0011  Start Foreground              The (SF) control code sets foreground display mode and causes                      (SF)                            0012  Start Foreground              subsequent characters to be displayed as foreground characters.                    (SF)                            0013  Start Foreground                                                                                                 (SF)                            0014  Start Foreground              Note: The default display mode is foreground.                                      (SF)                            0015  Start Foreground                                                                                                 (SF)                            0016  Start Foreground              Characteristics of foreground mode:                                                (SF)                            0017  Start Foreground                                                                                                 (SF)                            0018  Start Foreground              *  Foreground mode is used for keyboard data entry and for                         (SF)                            0019  Start Foreground                 program display of data for operator modification and                           (SF)                            0020  Start Foreground                 subsequent transmission to the program.                                         (SF)                            0021  Start Foreground                                                                                                 (SF)                            0022  Start Foreground              *  Foreground characters appear in normal video mode (as opposed                   (SF)                            0023  Start Foreground                 to inverse video mode).                                                         (SF)                            0024  Start Foreground                                                                                                 (SF)                            0025  Start Foreground              *  The cursor may be positioned anywhere within the boundaries of                  (SF)                            0026  Start Foreground                 a foreground field.                                                             (SF)                            0027  Start Foreground                                                                                                 (SF)                            0028  Start Foreground              *  Pressing the Tab key while the cursor is in a foreground field                  (SF)                            0029  Start Foreground                 moves the cursor to the beginning of the next foreground                        (SF)                            0030  Start Foreground                 field, skipping over any intervening background display areas.                  (SF)                            0031  Start Foreground                                                                                                 (SF)                            0032  Start Foreground              *  Foreground and background can be mixed in one FORMAT                            (SF)                            0033  Start Foreground                 statement, as long as the appropriate control codes (i.e.,                      (SF)                            0034  Start Foreground                 (SF) and (SB)) are used to start each operation.                                (SF)                            0035  Start Foreground                                                                                                 (SF)                            0036  Start Foreground            Example:                                                                             (SF)                            0037  Start Foreground                                                                                                 (SF)                            0038  Start Foreground              100 FORMAT (SB);"ENTER CODE NUMBER:";(TM);(SF);"    ";(TM);@(0,0)                  (SF)                            0039  Start Foreground              .                                                                                  (SF)                            0040  Start Foreground              PRINT (0,100)                                                                      (SF)                            0041  Start Foreground              INPUT (0) CODE$                                                                    (SF)                            0042  Start Foreground                                                                                                 (SF)                            0043  Start Foreground              This example shows how to use the start foreground control code                    (SF)                            0044  Start Foreground              in the middle of a FORMAT statement. This FORMAT starts out by                     (SF)                            0045  Start Foreground              entering background mode and displaying a program prompt. Next,                    (SF)                            0046  Start Foreground              the program places a transmit mark, switches to foreground,                        (SF)                            0047  Start Foreground              displays 5 blanks, places another transmit mark, and returns the                   (SF)                            0048  Start Foreground              cursor to "home" position.                                                         (SL=n)                          0001  Skip n Lines                Mnemonic:                                                                            (SL=n)                          0002  Skip n Lines                                                                                                     (SL=n)                          0003  Skip n Lines                  (SL=n)                                                                             (SL=n)                          0004  Skip n Lines                                                                                                     (SL=n)                          0005  Skip n Lines                Discussion:                                                                          (SL=n)                          0006  Skip n Lines                                                                                                     (SL=n)                          0007  Skip n Lines                  The (SL=n) control code causes the printer to skip n lines, where                  (SL=n)                          0008  Skip n Lines                  n is an integer between 1 and 999. This control performs the same                  (SL=n)                          0009  Skip n Lines                  function as multiple line feeds.                                                   (SL=n)                          0010  Skip n Lines                                                                                                     (SL=n)                          0011  Skip n Lines                Example:                                                                             (SL=n)                          0012  Skip n Lines                                                                                                     (SL=n)                          0013  Skip n Lines                  a. 100 FORMAT (SL=10)                                                              (SL=n)                          0014  Skip n Lines                     .                                                                               (SL=n)                          0015  Skip n Lines                     OPEN (1) "LP1"                                                                  (SL=n)                          0016  Skip n Lines                     .                                                                               (SL=n)                          0017  Skip n Lines                     PRINT (1,100)                                                                   (SL=n)                          0018  Skip n Lines                                                                                                     (SL=n)                          0019  Skip n Lines                  b. OPEN (1) "LP1"                                                                  (SL=n)                          0020  Skip n Lines                     .                                                                               (SL=n)                          0021  Skip n Lines                     PRINT (1) (SL=10)                                                               (SL=n)                          0022  Skip n Lines                                                                                                     (SL=n)                          0023  Skip n Lines                  This example uses the (SL=n) control code to skip 10 lines.                        (SSB)                           0001  Start Suppressed Background Mnemonic:                                                                            (SSB)                           0002  Start Suppressed Background                                                                                      (SSB)                           0003  Start Suppressed Background   (SSB)                                                                              (SSB)                           0004  Start Suppressed Background                                                                                      (SSB)                           0005  Start Suppressed Background Hex equivalent:                                                                      (SSB)                           0006  Start Suppressed Background                                                                                      (SSB)                           0007  Start Suppressed Background   "@040C@"                                                                           (SSB)                           0008  Start Suppressed Background                                                                                      (SSB)                           0009  Start Suppressed Background Discussion:                                                                          (SSB)                           0010  Start Suppressed Background                                                                                      (SSB)                           0011  Start Suppressed Background   The (SSB) control code sets suppressed background (invisible)                      (SSB)                           0012  Start Suppressed Background   display mode. Subsequent data is displayed as invisible,                           (SSB)                           0013  Start Suppressed Background   background blanks. The cursor cannot be positioned in an                           (SSB)                           0014  Start Suppressed Background   invisible field.                                                                   (SSB)                           0015  Start Suppressed Background                                                                                      (SSB)                           0016  Start Suppressed Background   Note: Certain control codes, such as transmit marks and right-                     (SSB)                           0017  Start Suppressed Background   justify marks, automatically appear in suppressed background. All                  (SSB)                           0018  Start Suppressed Background   other data attempted to be displayed in suppressed background                      (SSB)                           0019  Start Suppressed Background   mode will be displayed as blank spaces (invisible, protected from                  (SSB)                           0020  Start Suppressed Background   the cursor).                                                                       (SSB)                           0021  Start Suppressed Background                                                                                      (SSB)                           0022  Start Suppressed Background Example:                                                                             (SSB)                           0023  Start Suppressed Background                                                                                      (SSB)                           0024  Start Suppressed Background   a. 100 FORMAT ... (SSB);(BF);(BF);(BF)                                             (SSB)                           0025  Start Suppressed Background      .                                                                               (SSB)                           0026  Start Suppressed Background      PRINT (0,100)                                                                   (SSB)                           0027  Start Suppressed Background                                                                                      (SSB)                           0028  Start Suppressed Background   b. PRINT (0) ... (SSB);(BF);(BF);(BF)                                              (SSB)                           0029  Start Suppressed Background                                                                                      (SSB)                           0030  Start Suppressed Background   In this example, the PRINT ends with three blank fill control                      (SSB)                           0031  Start Suppressed Background   codes -- these display three lines of blanks in suppressed                         (SSB)                           0032  Start Suppressed Background   background, the mode set just before the last three controls.                      (Save Screen)                   0001                              Mnemonic:                                                                            (Save Screen)                   0002                                                                                                                   (Save Screen)                   0003                                (Save Screen)                                                                      (Save Screen)                   0004                                                                                                                   (Save Screen)                   0005                              Hex equivalent:                                                                      (Save Screen)                   0006                                                                                                                   (Save Screen)                   0007                                "@040003@"                                                                         (Save Screen)                   0008                                                                                                                   (Save Screen)                   0009                              Discussion:                                                                          (Save Screen)                   0010                                                                                                                   (Save Screen)                   0011                                This mnemonic saves the current screen display, including all                      (Save Screen)                   0012                                text and display attributes, variables, screen colors, the screen                  (Save Screen)                   0013                                mode, and the memory and display contents of all Comet windows                     (Save Screen)                   0014                                that are open. This mnemonic also frees up all windows memory for                  (Save Screen)                   0015                                the console session.                                                               (Save Screen)                   0016                                                                                                                   (Save Screen)                   0017                                This information is saved in a data file named "SCRN" + TERM$.                     (Save Screen)                   0018                                This file is created automatically by Comet and placed on the                      (Save Screen)                   0019                                first local RAM disk found among the accessed Comet directories;                   (Save Screen)                   0020                                if no local RAM disk is found, Comet uses the current DOS                          (Save Screen)                   0021                                directory. (This is the same directory where the partition                         (Save Screen)                   0022                                environments are saved when ENTER statements are executed.)                        (Save Screen)                   0023                                                                                                                   (Save Screen)                   0024                                   Note: This file is a DOS file, not a Comet file (i.e., there                    (Save Screen)                   0025                                   is no automatic entry in the QDIR file for this file).                          (Save Screen)                   0026                                                                                                                   (Save Screen)                   0027                                The console screen display does not change when this control is                    (Save Screen)                   0028                                written.  Your application may proceed to write new information                    (Save Screen)                   0029                                to the screen, use windows memory blocks, etc.                                     (Save Screen)                   0030                                                                                                                   (Save Screen)                   0031                                To restore the screen display, use <(Restore Screen)>.                             (Save Screen)                   0032                                                                                                                   (Save Screen)                   0033                              Example:                                                                             (Save Screen)                   0034                                                                                                                   (Save Screen)                   0035                                a. 100 FORMAT (Save Screen)                                                        (Save Screen)                   0036                                   .                                                                               (Save Screen)                   0037                                   PRINT (0,100                                                                    (Save Screen)                   0038                                                                                                                   (Save Screen)                   0039                                b. PRINT (0) (Save Screen)                                                         (Scan Codes Off)                0001                              Mnemonic:                                                                            (Scan Codes Off)                0002                                                                                                                   (Scan Codes Off)                0003                                (Scan Codes Off)                                                                   (Scan Codes Off)                0004                                                                                                                   (Scan Codes Off)                0005                              Hex equivalent:                                                                      (Scan Codes Off)                0006                                                                                                                   (Scan Codes Off)                0007                                "@0E000F@"                                                                         (Scan Codes Off)                0008                                                                                                                   (Scan Codes Off)                0009                              Discussion:                                                                          (Scan Codes Off)                0010                                                                                                                   (Scan Codes Off)                0011                                This mnemonic turns off the "scan code mode." For more                             (Scan Codes Off)                0012                                information, see <(Full Scan Codes Passed)>.                                       (Scan Codes Off)                0013                                                                                                                   (Scan Codes Off)                0014                              Example:                                                                             (Scan Codes Off)                0015                                                                                                                   (Scan Codes Off)                0016                                a. 100 FORMAT (Scan Codes Off)                                                     (Scan Codes Off)                0017                                   .                                                                               (Scan Codes Off)                0018                                   PRINT (0,100)                                                                   (Scan Codes Off)                0019                                                                                                                   (Scan Codes Off)                0020                                b. PRINT (0) (Scan Codes Off)                                                      (Shell to DOS)                  0001                              Mnemonic:                                                                            (Shell to DOS)                  0002                                                                                                                   (Shell to DOS)                  0003                                (Shell to DOS=ARG1$)                                                               (Shell to DOS)                  0004                                                                                                                   (Shell to DOS)                  0005                              Hex equivalent:                                                                      (Shell to DOS)                  0006                                                                                                                   (Shell to DOS)                  0007                                "@0E0E0A00@"                                                                       (Shell to DOS)                  0008                                                                                                                   (Shell to DOS)                  0009                              Discussion:                                                                          (Shell to DOS)                  0010                                                                                                                   (Shell to DOS)                  0011                                This mnemonic shells to DOS.                                                       (Shell to DOS)                  0012                                                                                                                   (Shell to DOS)                  0013                                ARG1$ is a string constant or variable containing a DOS command                    (Shell to DOS)                  0014                                or program name. If ARG1$ is null, the DOS command prompt will be                  (Shell to DOS)                  0015                                displayed.                                                                         (Shell to DOS)                  0016                                                                                                                   (Shell to DOS)                  0017                                The shell to DOS feature is intended for single user Comet                         (Shell to DOS)                  0018                                systems only (networked or standalone).                                            (Shell to DOS)                  0019                                                                                                                   (Shell to DOS)                  0020                                When this instruction is executed, the Comet environment (base                     (Shell to DOS)                  0021                                memory only) is written to disk. Comet writes this data on the                     (Shell to DOS)                  0022                                first configured local RAM drive. If no local RAM drive is                         (Shell to DOS)                  0023                                configured, Comet writes this data to the current DOS directory                    (Shell to DOS)                  0024                                on the hard drive.                                                                 (Shell to DOS)                  0025                                                                                                                   (Shell to DOS)                  0026                                This feature requires DOS 6.22 or later.                                           (Shell to DOS)                  0027                                                                                                                   (Shell to DOS)                  0028                                Returning to Comet:                                                                (Shell to DOS)                  0029                                                                                                                   (Shell to DOS)                  0030                                1. If a DOS command is not passed to the DOS shell, you can                        (Shell to DOS)                  0031                                   return to Comet by typing EXIT at the DOS prompt. This                          (Shell to DOS)                  0032                                   restarts Comet and returns to the next instruction following                    (Shell to DOS)                  0033                                   the (Shell to DOS) instruction.                                                 (Shell to DOS)                  0034                                                                                                                   (Shell to DOS)                  0035                                2. If a DOS command is passed to the DOS shell, Comet is                           (Shell to DOS)                  0036                                   restarted automatically when the DOS program is done. You are                   (Shell to DOS)                  0037                                   returned to the next instruction following the (Shell to DOS)                   (Shell to DOS)                  0038                                   instruction.                                                                    (Shell to DOS)                  0039                                                                                                                   (Shell to DOS)                  0040                              Example 1:                                                                           (Shell to DOS)                  0041                                                                                                                   (Shell to DOS)                  0042                                a. 100 FORMAT (Shell to DOS)                                                       (Shell to DOS)                  0043                                   .                                                                               (Shell to DOS)                  0044                                   PRINT (0,100)                                                                   (Shell to DOS)                  0045                                                                                                                   (Shell to DOS)                  0046                                b. PRINT (0) (Shell to DOS)                                                        (Shell to DOS)                  0047                                                                                                                   (Shell to DOS)                  0048                                This example shells to DOS and displays the DOS command prompt.                    (Shell to DOS)                  0049                                                                                                                   (Shell to DOS)                  0050                              Example 2:                                                                           (Shell to DOS)                  0051                                                                                                                   (Shell to DOS)                  0052                                a. 100 FORMAT (Shell to DOS="DIR C:\ /p")                                          (Shell to DOS)                  0053                                   .                                                                               (Shell to DOS)                  0054                                   PRINT (0,100)                                                                   (Shell to DOS)                  0055                                                                                                                   (Shell to DOS)                  0056                                b. PRINT (0) (Shell to DOS="DIR C:\ /p")                                           (Shell to DOS)                  0057                                                                                                                   (Shell to DOS)                  0058                                This example shells to DOS and performs the DIR command on the                     (Shell to DOS)                  0059                                root directory of drive C:, using the /p parameter to pause the                    (Shell to DOS)                  0060                                display when the screen is full.                                                   (Show Mouse Cursor)             0001                              Mnemonic:                                                                            (Show Mouse Cursor)             0002                                                                                                                   (Show Mouse Cursor)             0003                                (Show Mouse Cursor)                                                                (Show Mouse Cursor)             0004                                                                                                                   (Show Mouse Cursor)             0005                              Description:                                                                         (Show Mouse Cursor)             0006                                                                                                                   (Show Mouse Cursor)             0007                                This control shows the mouse cursor.                                               (Show Mouse Cursor)             0008                                                                                                                   (Show Mouse Cursor)             0009                                Also see <(Hide Mouse Cursor)>.                                                    (Show Mouse Cursor)             0010                                                                                                                   (Show Mouse Cursor)             0011                              Example:                                                                             (Show Mouse Cursor)             0012                                                                                                                   (Show Mouse Cursor)             0013                                a. 100 FORMAT (Show Mouse Cursor)                                                  (Show Mouse Cursor)             0014                                   .                                                                               (Show Mouse Cursor)             0015                                   PRINT (0,100)                                                                   (Show Mouse Cursor)             0016                                                                                                                   (Show Mouse Cursor)             0017                                b. PRINT (0) (Show Mouse Cursor)                                                   (Show cursor)                   0001                              Mnemonic:                                                                            (Show cursor)                   0002                                                                                                                   (Show cursor)                   0003                                (Show cursor)                                                                      (Show cursor)                   0004                                                                                                                   (Show cursor)                   0005                              Discussion:                                                                          (Show cursor)                   0006                                                                                                                   (Show cursor)                   0007                                This mnemonic shows the regular cursor.                                            (Show cursor)                   0008                                                                                                                   (Show cursor)                   0009                                See <Regular cursor display,#HELPMT5> for more information.                        (Show cursor)                   0010                                                                                                                   (Show cursor)                   0011                                Also see <(Hide Cursor)>.                                                          (Show cursor)                   0012                                                                                                                   (Show cursor)                   0013                              Example:                                                                             (Show cursor)                   0014                                                                                                                   (Show cursor)                   0015                                a. 100 FORMAT (Show Cursor)                                                        (Show cursor)                   0016                                   .                                                                               (Show cursor)                   0017                                   PRINT (0,100)                                                                   (Show cursor)                   0018                                                                                                                   (Show cursor)                   0019                                b. PRINT (0) (Show Cursor)                                                         (Single Key Transmit)           0001                              Mnemonic:                                                                            (Single Key Transmit)           0002                                                                                                                   (Single Key Transmit)           0003                                (Single Key Transmit)                                                              (Single Key Transmit)           0004                                                                                                                   (Single Key Transmit)           0005                              Hex equivalent:                                                                      (Single Key Transmit)           0006                                                                                                                   (Single Key Transmit)           0007                                "040002@"                                                                          (Single Key Transmit)           0008                                                                                                                   (Single Key Transmit)           0009                              Discussion:                                                                          (Single Key Transmit)           0010                                                                                                                   (Single Key Transmit)           0011                                This mnemonic sets the "single key transmit" mode, in which a                      (Single Key Transmit)           0012                                single keystroke causes an immediate transmission of data to the                   (Single Key Transmit)           0013                                program (without pressing Enter or crossing past a transmit                        (Single Key Transmit)           0014                                mark).                                                                             (Single Key Transmit)           0015                                                                                                                   (Single Key Transmit)           0016                                This mode must be reset each time it is to be used.                                (Single Key Transmit)           0017                                                                                                                   (Single Key Transmit)           0018                              Example:                                                                             (Single Key Transmit)           0019                                                                                                                   (Single Key Transmit)           0020                                a. 100 FORMAT (Single Key Transmit)                                                (Single Key Transmit)           0021                                   .                                                                               (Single Key Transmit)           0022                                   PRINT (0,100)                                                                   (Single Key Transmit)           0023                                   INPUT (0) DATA$                    ! wait for next keystroke                    (Single Key Transmit)           0024                                                                                                                   (Single Key Transmit)           0025                                b. PRINT (0) (Single Key Transmit)                                                 (Single Key Transmit)           0026                                   INPUT (0) DATA$                    ! wait for next keystroke                    (Std Keyboard Off)              0001                              Mnemonic:                                                                            (Std Keyboard Off)              0002                                                                                                                   (Std Keyboard Off)              0003                                (Std Keyboard Off)                                                                 (Std Keyboard Off)              0004                                                                                                                   (Std Keyboard Off)              0005                              Hex equivalent:                                                                      (Std Keyboard Off)              0006                                                                                                                   (Std Keyboard Off)              0007                                "@0E0006@"                                                                         (Std Keyboard Off)              0008                                                                                                                   (Std Keyboard Off)              0009                              Discussion:                                                                          (Std Keyboard Off)              0010                                                                                                                   (Std Keyboard Off)              0011                                This mnemonic turns off the standard keyboard mode.                                (Std Keyboard On)               0001                              Mnemonic:                                                                            (Std Keyboard On)               0002                                                                                                                   (Std Keyboard On)               0003                                (Std Keyboard On)                                                                  (Std Keyboard On)               0004                                                                                                                   (Std Keyboard On)               0005                              Hex equivalent:                                                                      (Std Keyboard On)               0006                                                                                                                   (Std Keyboard On)               0007                                "@000E05@"                                                                         (Std Keyboard On)               0008                                                                                                                   (Std Keyboard On)               0009                              Discussion:                                                                          (Std Keyboard On)               0010                                                                                                                   (Std Keyboard On)               0011                                This mnemonic turns on the standard keyboard mode.                                 (Switch Session)                0001                              Mnemonic:                                                                            (Switch Session)                0002                                                                                                                   (Switch Session)                0003                                (Switch Session=numeric-argument)                                                  (Switch Session)                0004                                                                                                                   (Switch Session)                0005                              Hex equivalent:                                                                      (Switch Session)                0006                                                                                                                   (Switch Session)                0007                                "@0E0Cxx@"                                                                         (Switch Session)                0008                                                                                                                   (Switch Session)                0009                                where:                                                                             (Switch Session)                0010                                xx = session (hex)                                                                 (Switch Session)                0011                                                                                                                   (Switch Session)                0012                              Discussion:                                                                          (Switch Session)                0013                                                                                                                   (Switch Session)                0014                                This mnemonic switches to another Comet session. The numeric-                      (Switch Session)                0015                                argument (a constant or variable) determines what action will be                   (Switch Session)                0016                                taken, based on the following values:                                              (Switch Session)                0017                                                                                                                   (Switch Session)                0018                                Value   Action                                                                     (Switch Session)                0019                                =================================================================                  (Switch Session)                0020                                0       next session (same as pressing the F9 key)                                 (Switch Session)                0021                                1       switch to session 1 (same pressing Alt+1)                                  (Switch Session)                0022                                2       switch to session 2 (same pressing Alt+2)                                  (Switch Session)                0023                                3       switch to session 3 (same pressing Alt+3)                                  (Switch Session)                0024                                4       switch to session 4 (same pressing Alt+4)                                  (Switch Session)                0025                                5       switch to session 5 (same pressing Alt+5)                                  (Switch Session)                0026                                6       switch to session 6 (same pressing Alt+6)                                  (Switch Session)                0027                                7       switch to session 7 (same pressing Alt+7)                                  (Switch Session)                0028                                8       switch to session 8 (same pressing Alt+8)                                  (Switch Session)                0029                                                                                                                   (Switch Session)                0030                              Example:                                                                             (Switch Session)                0031                                                                                                                   (Switch Session)                0032                                a. 100 FORMAT (Switch Session=0)                                                   (Switch Session)                0033                                   .                                                                               (Switch Session)                0034                                   PRINT (0,100)                 ! switch to next Comet session                    (Switch Session)                0035                                                                                                                   (Switch Session)                0036                                b. PRINT (0) (Switch Session=0)  ! switch to next Comet session                    (TM)                            0001  Transmit Mark               Mnemonic:                                                                            (TM)                            0002  Transmit Mark                                                                                                    (TM)                            0003  Transmit Mark                 (TM)                                                                               (TM)                            0004  Transmit Mark                                                                                                    (TM)                            0005  Transmit Mark               Hex equivalent:                                                                      (TM)                            0006  Transmit Mark                                                                                                    (TM)                            0007  Transmit Mark                 "@0C@"                                                                             (TM)                            0008  Transmit Mark                                                                                                    (TM)                            0009  Transmit Mark               Discussion:                                                                          (TM)                            0010  Transmit Mark                                                                                                    (TM)                            0011  Transmit Mark                 The (TM) control code places a transmit mark character at the                      (TM)                            0012  Transmit Mark                 current cursor position. The transmit mark is automatically                        (TM)                            0013  Transmit Mark                 displayed in suppressed background (invisible) mode and occupies                   (TM)                            0014  Transmit Mark                 one space on the video screen.                                                     (TM)                            0015  Transmit Mark                                                                                                    (TM)                            0016  Transmit Mark                 When the Tab, Return, or Enter key is pressed and the cursor                       (TM)                            0017  Transmit Mark                 advances past a transmit mark, the video device transmits to the                   (TM)                            0018  Transmit Mark                 host computer all foreground data between the last transmit mark                   (TM)                            0019  Transmit Mark                 and the previous transmit mark on the screen.                                      (TM)                            0020  Transmit Mark                                                                                                    (TM)                            0021  Transmit Mark                 Thus, transmit marks form delimiters for block data transmission.                  (TM)                            0022  Transmit Mark                 One transmit mark should be placed at the beginning of the data                    (TM)                            0023  Transmit Mark                 block to be sent to the host computer, and another transmit mark                   (TM)                            0024  Transmit Mark                 should be placed at the end of the data block. Cursor movement                     (TM)                            0025  Transmit Mark                 between the two transmit marks does not result in data                             (TM)                            0026  Transmit Mark                 transmission to the host system. Only when the ending transmit                     (TM)                            0027  Transmit Mark                 mark is crossed is the data block sent to the host system.                         (TM)                            0028  Transmit Mark                                                                                                    (TM)                            0029  Transmit Mark                 This control code may also include a positioning statement to                      (TM)                            0030  Transmit Mark                 place a transmit mark at a specific point on the screen.                           (TM)                            0031  Transmit Mark                                                                                                    (TM)                            0032  Transmit Mark                 See Transmit Stop <(TP)>.                                                          (TM)                            0033  Transmit Mark                                                                                                    (TM)                            0034  Transmit Mark               Example:                                                                             (TM)                            0035  Transmit Mark                                                                                                    (TM)                            0036  Transmit Mark                 100     FORMAT    (CS);_                   ! clear screen                          (TM)                            0037  Transmit Mark                                   (EN);_                   ! enter normal mode                     (TM)                            0038  Transmit Mark                                   (SB);_                   ! start background                      (TM)                            0039  Transmit Mark                                   "CUSTOMER NUMBER:",@(0,5);_   ! prompt                           (TM)                            0040  Transmit Mark                                   (TM);_                        ! transmit mark                    (TM)                            0041  Transmit Mark                                   (SF);"     ";_           ! foreground spaces                     (TM)                            0042  Transmit Mark                                   (TM);_                   ! transmit mark                         (TM)                            0043  Transmit Mark                                   @17,5)                   ! move cursor                           (TM)                            0044  Transmit Mark                                   .                                                                (TM)                            0045  Transmit Mark                                   PRINT (0,100)                                                    (TM)                            0046  Transmit Mark                                   INPUT (0) CUSTNUM$                                               (TM)                            0047  Transmit Mark                                                                                                    (TM)                            0048  Transmit Mark                 This example combines several video control codes to demonstrate                   (TM)                            0049  Transmit Mark                 the basic function of the transmit mark. The FORMAT statement                      (TM)                            0050  Transmit Mark                 starts by clearing the screen (using the (CS) control code) and                    (TM)                            0051  Transmit Mark                 entering normal mode (using the (EN) control code).                                (TM)                            0052  Transmit Mark                                                                                                    (TM)                            0053  Transmit Mark                 Then, the (SB) control code is used to start background mode. A                    (TM)                            0054  Transmit Mark                 prompt is displayed starting at column 0, row 5. Following the                     (TM)                            0055  Transmit Mark                 prompt, a transmit mark is displayed.                                              (TM)                            0056  Transmit Mark                                                                                                    (TM)                            0057  Transmit Mark                 Next, the (SF) control code is used to start foreground mode (for                  (TM)                            0058  Transmit Mark                 a data entry field), and five blank spaces are displayed.                          (TM)                            0059  Transmit Mark                 Following these spaces, another transmit mark is displayed.                        (TM)                            0060  Transmit Mark                                                                                                    (TM)                            0061  Transmit Mark                 The final element in the FORMAT statement moves the cursor to                      (TM)                            0062  Transmit Mark                 column 17, row 5, which is the left-most character in the data                     (TM)                            0063  Transmit Mark                 entry field. This data entry field is made up of five foreground                   (TM)                            0064  Transmit Mark                 blanks surrounded by transmit marks. When the second transmit                      (TM)                            0065  Transmit Mark                 mark is crossed by an operator action or forced transmit from the                  (TM)                            0066  Transmit Mark                 program itself, the data in the data entry field will be sent to                   (TM)                            0067  Transmit Mark                 the host computer.                                                                 (TP)                            0001  Transmit Stop mark          Mnemonic:                                                                            (TP)                            0002  Transmit Stop mark                                                                                               (TP)                            0003  Transmit Stop mark            (TP)                                                                               (TP)                            0004  Transmit Stop mark                                                                                               (TP)                            0005  Transmit Stop mark          Hex equivalent:                                                                      (TP)                            0006  Transmit Stop mark                                                                                               (TP)                            0007  Transmit Stop mark            "@0409@"                                                                           (TP)                            0008  Transmit Stop mark                                                                                               (TP)                            0009  Transmit Stop mark          Discussion:                                                                          (TP)                            0010  Transmit Stop mark                                                                                               (TP)                            0011  Transmit Stop mark            The (TP) control code places a transmit stop character at the                      (TP)                            0012  Transmit Stop mark            current cursor position. This control functions exactly like a                     (TP)                            0013  Transmit Stop mark            transmit mark, except that the operator cannot move the cursor to                  (TP)                            0014  Transmit Stop mark            a previous (above or to the left of) position on the screen. See                   (TP)                            0015  Transmit Stop mark            Transmit Mark <(TM)>.                                                              (TR)                            0001                              Mnemonic:                                                                            (TR)                            0002                                                                                                                   (TR)                            0003                                (TR)                                                                               (TR)                            0004                                                                                                                   (TR)                            0005                              Discussion:                                                                          (TR)                            0006                                                                                                                   (TR)                            0007                                This mnemonic sets "transparent printing mode" (i.e., the printer                  (TR)                            0008                                driver does not append CR/LF to the end of each line).                             (TR)                            0009                                                                                                                   (TR)                            0010                              Example:                                                                             (TR)                            0011                                                                                                                   (TR)                            0012                                a. 100 FORMAT (TR)                                                                 (TR)                            0013                                   .                                                                               (TR)                            0014                                   OPEN (1) "LP1"                                                                  (TR)                            0015                                   PRINT (1,100)                                                                   (TR)                            0016                                                                                                                   (TR)                            0017                                b. OPEN (1) "LP1"                                                                  (TR)                            0018                                   PRINT (1) (TR)                                                                  (WC)                            0001  Write to Control line       Mnemonic:                                                                            (WC)                            0002  Write to Control line                                                                                            (WC)                            0003  Write to Control line         (WC)                                                                               (WC)                            0004  Write to Control line                                                                                            (WC)                            0005  Write to Control line       Hex equivalent:                                                                      (WC)                            0006  Write to Control line                                                                                            (WC)                            0007  Write to Control line         "@0E07@"                                                                           (WC)                            0008  Write to Control line                                                                                            (WC)                            0009  Write to Control line       Discussion:                                                                          (WC)                            0010  Write to Control line                                                                                            (WC)                            0011  Write to Control line         The (WC) control code writes to the control line (a.k.a. "message                  (WC)                            0012  Write to Control line         line") of the controlling terminal. Subsequent data on the                         (WC)                            0013  Write to Control line         current write is displayed on the control line at the bottom of                    (WC)                            0014  Write to Control line         the screen display.                                                                (WC)                            0015  Write to Control line                                                                                            (WC)                            0016  Write to Control line         Typically, the control line is used to display special messages                    (WC)                            0017  Write to Control line         and/or warnings.                                                                   (WC)                            0018  Write to Control line                                                                                            (WC)                            0019  Write to Control line         Note: The (WC) control code sends messages to the controlling                      (WC)                            0020  Write to Control line         device only, not to other terminals or devices. To send a message                  (WC)                            0021  Write to Control line         to another terminal, you must use the DOSRW function, explained                    (WC)                            0022  Write to Control line         in the DOS Function Calls chapter.                                                 (WC)                            0023  Write to Control line                                                                                            (WC)                            0024  Write to Control line       Example:                                                                             (WC)                            0025  Write to Control line                                                                                            (WC)                            0026  Write to Control line         a. 100 FORMAT (WC);"This is a message."                                            (WC)                            0027  Write to Control line            .                                                                               (WC)                            0028  Write to Control line            PRINT (0,100)                                                                   (WC)                            0029  Write to Control line                                                                                            (WC)                            0030  Write to Control line         b. PRINT (0) (WC);"This is a message."                                             (WC)                            0031  Write to Control line                                                                                            (WC)                            0032  Write to Control line         This example shows how to write a message to the control line.                     (Who Has File)                  0001                              Mnemonic:                                                                            (Who Has File)                  0002                                                                                                                   (Who Has File)                  0003                                (Who Has File)                                                                     (Window Title Background)       0001                              Mnemonic:                                                                            (Window Title Background)       0002                                                                                                                   (Window Title Background)       0003                                (Window Title Background=ARG1$,ARG2)                                               (Window Title Background)       0004                                                                                                                   (Window Title Background)       0005                              Discussion:                                                                          (Window Title Background)       0006                                                                                                                   (Window Title Background)       0007                                ARG1$ is string (constant or variable) containing the text to be                   (Window Title Background)       0008                                displayed in background characters on the top border line of the                   (Window Title Background)       0009                                current Comet window.                                                              (Window Title Background)       0010                                                                                                                   (Window Title Background)       0011                                ARG2 is a number (constant or variable) containing the horizontal                  (Window Title Background)       0012                                starting position where the title text will be displayed                           (Window Title Background)       0013                                (position 0 is the left-hand column).                                              (Window Title Background)       0014                                                                                                                   (Window Title Background)       0015                                Also see <(Window Title Foreground)>.                                              (Window Title Background)       0016                                                                                                                   (Window Title Background)       0017                              Example:                                                                             (Window Title Background)       0018                                                                                                                   (Window Title Background)       0019                                a. 100 FORMAT (Window Title Background="Title line",5)                             (Window Title Background)       0020                                   .                                                                               (Window Title Background)       0021                                   PRINT (0,100)                                                                   (Window Title Background)       0022                                                                                                                   (Window Title Background)       0023                                b. PRINT (0) (Window Title Background="Title line",5)                              (Window Title Foreground)       0001                              Mnemonic:                                                                            (Window Title Foreground)       0002                                                                                                                   (Window Title Foreground)       0003                                (Window Title Foreground=ARG1$,ARG2)                                               (Window Title Foreground)       0004                                                                                                                   (Window Title Foreground)       0005                              Discussion:                                                                          (Window Title Foreground)       0006                                                                                                                   (Window Title Foreground)       0007                                ARG1$ is string (constant or variable) containing the text to be                   (Window Title Foreground)       0008                                displayed in foreground characters on the top border line of the                   (Window Title Foreground)       0009                                current Comet window.                                                              (Window Title Foreground)       0010                                                                                                                   (Window Title Foreground)       0011                                ARG2 is a number (constant or variable) containing the horizontal                  (Window Title Foreground)       0012                                starting position where the title text will be displayed                           (Window Title Foreground)       0013                                (position 0 is the left-hand column).                                              (Window Title Foreground)       0014                                                                                                                   (Window Title Foreground)       0015                                Also see <(Window Title Background)>.                                              (Window Title Foreground)       0016                                                                                                                   (Window Title Foreground)       0017                              Example:                                                                             (Window Title Foreground)       0018                                                                                                                   (Window Title Foreground)       0019                                a. 100 FORMAT (Window Title Foreground="Title line",5)                             (Window Title Foreground)       0020                                   .                                                                               (Window Title Foreground)       0021                                   PRINT (0,100)                                                                   (Window Title Foreground)       0022                                                                                                                   (Window Title Foreground)       0023                                b. PRINT (0) (Window Title Foreground="Title line",5)                              @(position)                     0001                              Position                                                                             @(position)                     0002                              ========                                                                             @(position)                     0003                                                                                                                   @(position)                     0004                                The position parameter in a <FORMAT> statement is the screen                       @(position)                     0005                                coordinates, the printer line position, or the record position                     @(position)                     0006                                where the field is to be output. The @ sign and the parentheses                    @(position)                     0007                                are part of the syntax for this parameter.                                         @(position)                     0008                                                                                                                   @(position)                     0009                                For screen formats, the left-most position is 0 and the top row                    @(position)                     0010                                is also 0. The first position on a printer line is also 0, and                     @(position)                     0011                                the first position of a data record is 0.                                          @(position)                     0012                                                                                                                   @(position)                     0013                                For screen formats, you must specify the column first, followed                    @(position)                     0014                                by a comma and the row number.                                                     @(position)                     0015                                                                                                                   @(position)                     0016                              Example:                                                                             @(position)                     0017                                                                                                                   @(position)                     0018                                1000 FORMAT CUSTNUM$,@(10,5)                                                       @(position)                     0019                                .                                                                                  @(position)                     0020                                <PRINT,#HELPMT4> (0,1000)                                                          @(position)                     0021                                                                                                                   @(position)                     0022                                In this example, the variable named CUSTNUM$ will be displayed                     @(position)                     0023                                starting at column 10, row 5.                                                      @(position)                     0024                                                                                                                   @(position)                     0025                                Note: This example could also be written without a FORMAT                          @(position)                     0026                                statement, as follows:                                                             @(position)                     0027                                                                                                                   @(position)                     0028                                PRINT (0) CUSTNUM$,@(10,5)                                                         COMMON                          0001                              Syntax:                                                                              COMMON                          0002                                                                                                                   COMMON                          0003                                COMMON variable-list                                                               COMMON                          0004                                                                                                                   COMMON                          0005                              Discussion:                                                                          COMMON                          0006                                                                                                                   COMMON                          0007                                The COMMON statement defines data variables to be used by more                     COMMON                          0008                                than one MTB program. Common variables can be "overlayed" into                     COMMON                          0009                                the same partition as the current program, or passed to a program                  COMMON                          0010                                in another partition (e.g., a background partition).                               COMMON                          0011                                                                                                                   COMMON                          0012                                All variables (other than Comet <system variables>) used in the                    COMMON                          0013                                I/O Format Division or Procedure Division of a program must be                     COMMON                          0014                                declared as COMMON or <LOCAL>.                                                     COMMON                          0015                                                                                                                   COMMON                          0016                                The variable-list includes MTB variable names, each separated by                   COMMON                          0017                                a comma or blank space. Any number of variables can be declared                    COMMON                          0018                                with one COMMON statement.                                                         COMMON                          0019                                                                                                                   COMMON                          0020                                The COMMON statement generally follows a related <LENGTH>                          COMMON                          0021                                statement. String variables defined in the variable-list must be                   COMMON                          0022                                preceded by a LENGTH statement which defines the length of the                     COMMON                          0023                                fields. Numeric variables do not necessarily require a LENGTH                      COMMON                          0024                                statement; those with no preceding LENGTH statement are assigned                   COMMON                          0025                                a default length and precision of 8.2.                                             COMMON                          0026                                                                                                                   COMMON                          0027                                Array definitions must include the number of elements (or the                      COMMON                          0028                                maximum number of indices for multi-dimensional arrays) as an                      COMMON                          0029                                integer constant or symbolic constant enclosed in parentheses.                     COMMON                          0030                                For example, ALPH$(26) defines a string array named ALPH$ with 26                  COMMON                          0031                                elements, and VALUE(3,24) defines a numeric array named VALUE                      COMMON                          0032                                with 3 columns and 24 rows.                                                        COMMON                          0033                                                                                                                   COMMON                          0034                                Note: You must define common variables in the same order and with                  COMMON                          0035                                the same length in each program that shares the variables.                         COMMON                          0036                                Variable names can be different from program to program, although                  COMMON                          0037                                it is good practice to keep them consistent.                                       COMMON                          0038                                                                                                                   COMMON                          0039                              Application notes:                                                                   COMMON                          0040                                                                                                                   COMMON                          0041                                1. Defining some variables as COMMON and some as LOCAL allows you                  COMMON                          0042                                   to initialize selected variables with the CLEARCOMMON and                       COMMON                          0043                                   CLEARLOCAL statements. For more information, see the                            COMMON                          0044                                   <CLEAR,#HELPMT4> statement.                                                     COMMON                          0045                                                                                                                   COMMON                          0046                                2. Frequently, data variable definitions are used in more than                     COMMON                          0047                                   one source program. In these cases, the most practical way to                   COMMON                          0048                                   compile the same definitions into multiple programs is to                       COMMON                          0049                                   define them in "usefiles."  Then, in each individual source                     COMMON                          0050                                   program, all you need to do is include the USE directive --                     COMMON                          0051                                   the corresponding usefile definitions will automatically be                     COMMON                          0052                                   included in the resulting compiled program.                                     COMMON                          0053                                                                                                                   COMMON                          0054                              Example 1:                                                                           COMMON                          0055                                                                                                                   COMMON                          0056                                LENGTH 25                                                                          COMMON                          0057                                LENGTH 9.2                                                                         COMMON                          0058                                COMMON NAME$, ADDRESS1$, ADDRESS2$, CRLIMIT                                        COMMON                          0059                                                                                                                   COMMON                          0060                                In the above example, three string variables and one numeric                       COMMON                          0061                                variable are defined as common data variables. The LENGTH                          COMMON                          0062                                statements preceding the COMMON statement determine the length                     COMMON                          0063                                and precision of the fields listed in the COMMON statement.                        COMMON                          0064                                                                                                                   COMMON                          0065                                For example, LENGTH 25 defines the length of NAME$, ADDRESS1$,                     COMMON                          0066                                and ADDRESS2$ (i.e., they will each store a maximum of 25                          COMMON                          0067                                characters). The LENGTH 9.2 statement defines the length and                       COMMON                          0068                                precision of the numeric variable CRLIMIT (i.e., it will store up                  COMMON                          0069                                to nine digits, two of which will be to the right of the decimal                   COMMON                          0070                                point).                                                                            COMMON                          0071                                                                                                                   COMMON                          0072                              Example 2:                                                                           COMMON                          0073                                                                                                                   COMMON                          0074                                LENGTH 10 & COMMON ZIPCODE$                                                        COMMON                          0075                                                                                                                   COMMON                          0076                                This example shows how two statements may be combined on a single                  COMMON                          0077                                source program line. In this case, the LENGTH 10 statement                         COMMON                          0078                                declares that the following string fields will store a maximum of                  COMMON                          0079                                ten characters. The ampersand symbol (&) indicates that another                    COMMON                          0080                                statement follows on the same line. The COMMON statement defines                   COMMON                          0081                                a common string variable called ZIPCODE$.                                          CURPOS$                         0001                              System variable:    CURPOS$                                                          CURPOS$                         0002                                                                                                                   CURPOS$                         0003                              Length:             2                                                                CURPOS$                         0004                                                                                                                   CURPOS$                         0005                              Description:                                                                         CURPOS$                         0006                                                                                                                   CURPOS$                         0007                                The system variable named CURPOS$ contains the position of the                     CURPOS$                         0008                                cursor at the last data transmission from the video device. The                    CURPOS$                         0009                                value is a two-byte hex string containing the cursor position in                   CURPOS$                         0010                                the form "@YYXX@" where "YY" represents the row and "XX"                           CURPOS$                         0011                                represents the column plus 1. (The minimum column value is 1 and                   CURPOS$                         0012                                the maximum is 64, 80, or 132, depending on the screen setting.                    CURPOS$                         0013                                To arrive at the actual cursor position, you must subtract 1 from                  CURPOS$                         0014                                the column value.)                                                                 CURPOS$                         0015                                                                                                                   CURPOS$                         0016                                The CURPOS$ string must be converted as follows to achieve the                     CURPOS$                         0017                                cursor position in decimal:                                                        CURPOS$                         0018                                                                                                                   CURPOS$                         0019                                   LENGTH 2 & LOCAL A$      ! Receiving variable for CURPOS$                       CURPOS$                         0020                                   LENGTH 2.0 & LOCAL X,Y   ! Numeric variables for row, column                    CURPOS$                         0021                                   .                                                                               CURPOS$                         0022                                   .                                                                               CURPOS$                         0023                                   .                                                                               CURPOS$                         0024                                   A$ = CURPOS$                  ! Contents of A$ will be @YYXX@                   CURPOS$                         0025                                   Y = HEXDEC(SUB(A$,1,1))       ! Row value (decimal)                             CURPOS$                         0026                                   X = HEXDEC(SUB(A$,2,1)) - 1   ! Column value (decimal)                          Copyright                       0001                              Copyright Notice                                                                     Copyright                       0002                              ================                                                                     Copyright                       0003                                                                                                                   Copyright                       0004                                This software package and documentation are copyrighted 1986-1996                  Copyright                       0005                                by Signature Systems, Inc. All rights reserved worldwide. No part                  Copyright                       0006                                of this publication may be reproduced, transmitted, transcribed,                   Copyright                       0007                                stored in any retrieval system, or translated into any language                    Copyright                       0008                                by any means without the express written permission of Signature                   Copyright                       0009                                Systems, Inc., 4325 Harrison Grade Road, Sebastopol, CA 95472.                     Copyright                       0010                                                                                                                   Copyright                       0011                              Disclaimer                                                                           Copyright                       0012                              ==========                                                                           Copyright                       0013                                                                                                                   Copyright                       0014                                Signature Systems, Inc. makes no warranties as to the contents of                  Copyright                       0015                                this documentation and specifically disclaims any implied                          Copyright                       0016                                warranties of merchantability or fitness for any particular                        Copyright                       0017                                purpose. Signature Systems further reserves the right to make                      Copyright                       0018                                changes to the specifications of the program and contents of the                   Copyright                       0019                                documentation without obligation to notify any person or                           Copyright                       0020                                organization of such changes.                                                      Copyright                       0021                                                                                                                   Copyright                       0022                              License Agreement                                                                    Copyright                       0023                              =================                                                                    Copyright                       0024                                                                                                                   Copyright                       0025                                The software described in this documentation is furnished under a                  Copyright                       0026                                license agreement and may be used or copied only in accordance                     Copyright                       0027                                with the terms of the agreement. Failure to sign this agreement                    Copyright                       0028                                and still use the software is illegal.                                             Copyright                       0029                                                                                                                   Copyright                       0030                              Trademark Credits                                                                    Copyright                       0031                              =================                                                                    Copyright                       0032                                                                                                                   Copyright                       0033                                Trademarks used in this manual belong to their respective owners.                  Copyright                       0034                                                                                                                   Copyright                       0035                              Publication Information                                                              Copyright                       0036                              =======================                                                              Copyright                       0037                                                                                                                   Copyright                       0038                                First on-line edition September 1996.                                              DATE                            0001                              System variable:    DATE                                                             DATE                            0002                                                                                                                   DATE                            0003                              Length/precision:   6.0                                                              DATE                            0004                                                                                                                   DATE                            0005                              Description:                                                                         DATE                            0006                                                                                                                   DATE                            0007                                The system variable named DATE is loaded with the DOS date when                    DATE                            0008                                Comet is executed. While the value of DATE may be changed in an                    DATE                            0009                                MTB program, it is automatically refreshed with the DOS date                       DATE                            0010                                whenever the clock is read. DATE is a six-digit numeric field in                   DATE                            0011                                the form MMDDYY, where MM represents the month, DD represents the                  DATE                            0012                                day, and YY represents the last two digits of the current year.                    DATE$                           0001                              System variable:    DATE$                                                            DATE$                           0002                                                                                                                   DATE$                           0003                              Length:             6                                                                DATE$                           0004                                                                                                                   DATE$                           0005                              Description:                                                                         DATE$                           0006                                                                                                                   DATE$                           0007                                The system variable named DATE$ contains the system date in the                    DATE$                           0008                                format "MMDDYY". This six-byte string is loaded when Comet is                      DATE$                           0009                                executed. While the value of DATE$ may be changed in an MTB                        DATE$                           0010                                program, it is automatically refreshed with the DOS date whenever                  DATE$                           0011                                the clock is read.                                                                 DAY$                            0001                              System variable:    DAY$                                                             DAY$                            0002                                                                                                                   DAY$                            0003                              Length:             8                                                                DAY$                            0004                                                                                                                   DAY$                            0005                              Description:                                                                         DAY$                            0006                                                                                                                   DAY$                            0007                                The system variable named DAY$ may be used to store the system                     DAY$                            0008                                date in formatted form. Initially, when Comet is loaded, this                      DAY$                            0009                                variable contains a null value. An application program may assign                  DAY$                            0010                                the system date to this variable, and the variable may be used                     DAY$                            0011                                from that point on. DAY$ is an eight-byte string field.                            Data Division                   0001                              Data Division                                                                        Data Division                   0002                              =============                                                                        Data Division                   0003                                                                                                                   Data Division                   0004                                The Data Division is the first functional section of all MTB                       Data Division                   0005                                programs. It appears before the I/O Format Division and the                        Data Division                   0006                                Procedure Division. The statements in the Data Division define                     Data Division                   0007                                all the data variables in the current MTB program. The definition                  Data Division                   0008                                of each variable includes its:                                                     Data Division                   0009                                                                                                                   Data Division                   0010                                *  <name|Variable names>                                                           Data Division                   0011                                *  <type|Variable types>                                                           Data Division                   0012                                *  <length|Variable length>                                                        Data Division                   0013                                *  <classification|Variable classification>                                        Data Division                   0014                                                                                                                   Data Division                   0015                                Also see <Data Division Statements>.                                               Data Division                   0016                                                                                                                   Data Division                   0017                                Note: Comet includes a number of <system variables> that may be                    Data Division                   0018                                used in an MTB program without being defined in the Data                           Data Division                   0019                                Division.                                                                          Data Division Statements        0001                              Data Division Statements                                                             Data Division Statements        0002                              ========================                                                             Data Division Statements        0003                                                                                                                   Data Division Statements        0004                                The Data Division statements used to define data variables                         Data Division Statements        0005                                include LENGTH, LOCAL, COMMON, and ROUND.                                          Data Division Statements        0006                                                                                                                   Data Division Statements        0007                                *  The <LENGTH> statement defines the length (and precision) of                    Data Division Statements        0008                                   data variables in the program.                                                  Data Division Statements        0009                                                                                                                   Data Division Statements        0010                                *  The <LOCAL> and <COMMON> statements define the classification                   Data Division Statements        0011                                   of variables for single program or multiple program use,                        Data Division Statements        0012                                   respectively.                                                                   Data Division Statements        0013                                                                                                                   Data Division Statements        0014                                *  The <ROUND> statement defines numeric variables to be rounded                   Data Division Statements        0015                                   rather than truncated.                                                          ENTERLEVEL                      0001                              System variable:    ENTERLEVEL                                                       ENTERLEVEL                      0002                                                                                                                   ENTERLEVEL                      0003                              Length/precision:   2.0                                                              ENTERLEVEL                      0004                                                                                                                   ENTERLEVEL                      0005                              Description:                                                                         ENTERLEVEL                      0006                                                                                                                   ENTERLEVEL                      0007                                The system variable named ENTERLEVEL is a two-digit numeric                        ENTERLEVEL                      0008                                variable whose value equals the relative subprogram level of the                   ENTERLEVEL                      0009                                program currently executing.                                                       ENTERLEVEL                      0010                                                                                                                   ENTERLEVEL                      0011                                *  If ENTERLEVEL equals zero, the current program is not a                         ENTERLEVEL                      0012                                   subprogram (i.e., it was RUN, not ENTERed).                                     ENTERLEVEL                      0013                                                                                                                   ENTERLEVEL                      0014                                *  Values greater than zero equal the number of ENTER operations                   ENTERLEVEL                      0015                                   used to execute the current program.                                            ENTERLEVEL                      0016                                                                                                                   ENTERLEVEL                      0017                                For example, a value of 5 means than 5 ENTER operations were                       ENTERLEVEL                      0018                                executed to run the current program (i.e., the current program is                  ENTERLEVEL                      0019                                5 subprogram levels deep).                                                         ENTERLEVEL                      0020                                                                                                                   ENTERLEVEL                      0021                                See <ENTER,#HELPMT4> and <EXIT,#HELPMT4> for more information on                   ENTERLEVEL                      0022                                subprograms.                                                                       EXCP                            0001                              System variable:    EXCP                                                             EXCP                            0002                                                                                                                   EXCP                            0003                              Length/precision:   2.0                                                              EXCP                            0004                                                                                                                   EXCP                            0005                              Description:                                                                         EXCP                            0006                                                                                                                   EXCP                            0007                                The system variable named EXCP contains the number of the most                     EXCP                            0008                                recent Comet system exception. EXCP is a two-byte numeric                          EXCP                            0009                                variable that may be interrogated by an MTB program to ascertain                   EXCP                            0010                                specific exceptions that may occur during program execution.                       EXCP                            0011                                                                                                                   EXCP                            0012                                For example, if one user has a record extracted from a data file                   EXCP                            0013                                (a condition that locks the record), and another user attempts to                  EXCP                            0014                                read the same record, the second user will encounter an                            EXCP                            0015                                exception. For the second user, the value of the system variable                   EXCP                            0016                                EXCP will be 33, indicating that an attempt has been made to read                  EXCP                            0017                                a record that is extracted by another user.                                        EXCP                            0018                                                                                                                   EXCP                            0019                                See <Exception Handling,#HELPMT4> for more information.                            FORMAT                          0001  The FORMAT statement        Syntax:                                                                              FORMAT                          0002  The FORMAT statement                                                                                             FORMAT                          0003  The FORMAT statement             format-statement-label FORMAT <format objects|Format objects>                   FORMAT                          0004  The FORMAT statement                                                                                             FORMAT                          0005  The FORMAT statement        Discussion:                                                                          FORMAT                          0006  The FORMAT statement                                                                                             FORMAT                          0007  The FORMAT statement          The format-statement-label is a numeric or alphanumeric label                      FORMAT                          0008  The FORMAT statement          used to identify the FORMAT statement. In its numeric form, this                   FORMAT                          0009  The FORMAT statement          label may be one to four digits long (e.g., 1, 10, 100, 1000).                     FORMAT                          0010  The FORMAT statement          The MTB compiler treats a FORMAT label as a string of characters,                  FORMAT                          0011  The FORMAT statement          rather than as a numeric value. This means that labels such as 1,                  FORMAT                          0012  The FORMAT statement          01, 001, and 0001 are all different from each other.                               FORMAT                          0013  The FORMAT statement                                                                                             FORMAT                          0014  The FORMAT statement          Alphanumeric format statement labels may be any length, but the                    FORMAT                          0015  The FORMAT statement          first eight characters must be unique within a single source                       FORMAT                          0016  The FORMAT statement          program. Alphanumeric labels must begin with a letter and end                      FORMAT                          0017  The FORMAT statement          with a colon (:) when being defined. References to this label                      FORMAT                          0018  The FORMAT statement          from the Procedure Division do not include the colon. Characters                   FORMAT                          0019  The FORMAT statement          following the first one may be alphabetic or numeric. No special                   FORMAT                          0020  The FORMAT statement          symbols or blanks are allowed in format statement labels.                          FORMAT                          0021  The FORMAT statement                                                                                             FORMAT                          0022  The FORMAT statement          Note: MTB supports two types of statement labels, format                           FORMAT                          0023  The FORMAT statement          statement labels and procedural statement labels. The compiler                     FORMAT                          0024  The FORMAT statement          treats these in different groups, so it is possible to have the                    FORMAT                          0025  The FORMAT statement          same label in the I/O Format Division and in the Procedure                         FORMAT                          0026  The FORMAT statement          Division.                                                                          FORMAT                          0027  The FORMAT statement                                                                                             FORMAT                          0028  The FORMAT statement          The format objects include numeric constants or variables, string                  FORMAT                          0029  The FORMAT statement          constants or variables, and formatting control codes. If more                      FORMAT                          0030  The FORMAT statement          than one format item is included in a FORMAT statement, a                          FORMAT                          0031  The FORMAT statement          semicolon (;) must be used to separate the items.                                  FORMAT                          0032  The FORMAT statement                                                                                             FORMAT                          0033  The FORMAT statement        Example:                                                                             FORMAT                          0034  The FORMAT statement                                                                                             FORMAT                          0035  The FORMAT statement          Label   Keyword   Format items                                                     FORMAT                          0036  The FORMAT statement          =================================================================                  FORMAT                          0037  The FORMAT statement          INFO:   FORMAT    (WC);"NOW PROCESSING RECORD ";CUSTNUM$                           FORMAT                          0038  The FORMAT statement                                                                                             FORMAT                          0039  The FORMAT statement          In this example, the format statement label is INFO. The three                     FORMAT                          0040  The FORMAT statement          format items are:                                                                  FORMAT                          0041  The FORMAT statement                                                                                             FORMAT                          0042  The FORMAT statement          *  a control code -- the (WC) mnemonic instructs the program to                    FORMAT                          0043  The FORMAT statement             write a message to the control line of the terminal                             FORMAT                          0044  The FORMAT statement          *  a string constant -- the message "NOW PROCESSING RECORD"                        FORMAT                          0045  The FORMAT statement          *  a string variable -- CUSTNUM$                                                   FORMAT                          0046  The FORMAT statement                                                                                             FORMAT                          0047  The FORMAT statement        Additional discussion:                                                               FORMAT                          0048  The FORMAT statement                                                                                             FORMAT                          0049  The FORMAT statement          In a larger context, this FORMAT statement would be invoked with                   FORMAT                          0050  The FORMAT statement          a PRINT statement in the Procedure Division of the program, as                     FORMAT                          0051  The FORMAT statement          follows:                                                                           FORMAT                          0052  The FORMAT statement                                                                                             FORMAT                          0053  The FORMAT statement          INFO: FORMAT (WC);"NOW PROCESSING RECORD ";CUSTNUM$                                FORMAT                          0054  The FORMAT statement          .                                                                                  FORMAT                          0055  The FORMAT statement          .                                                                                  FORMAT                          0056  The FORMAT statement          .                                                                                  FORMAT                          0057  The FORMAT statement          <PRINT,#HELPMT4> (0,INFO)                                                          FORMAT                          0058  The FORMAT statement                                                                                             FORMAT                          0059  The FORMAT statement          The PRINT statement instructs the system to print to logical unit                  FORMAT                          0060  The FORMAT statement          number 0 (the video screen in this case) using the format                          FORMAT                          0061  The FORMAT statement          statement label INFO.                                                              Format objects                  0001                              Format objects                                                                       Format objects                  0002                              ==============                                                                       Format objects                  0003                                                                                                                   Format objects                  0004                                Format objects may contain multiple clauses to indicate such                       Format objects                  0005                                things as format item, field length override, field position                       Format objects                  0006                                (screen coordinates, printer position, or record position), and                    Format objects                  0007                                an edit mask for numeric fields. These items, when used, are                       Format objects                  0008                                separated by commas, as follows:                                                   Format objects                  0009                                                                                                                   Format objects                  0010                                   <format-item>,<length-override>,<@(position)>,<edit-mask>                       HELPKEY$                        0001                              System variable:    HELPKEY$                                                         HELPKEY$                        0002                                                                                                                   HELPKEY$                        0003                              Length:             4                                                                HELPKEY$                        0004                                                                                                                   HELPKEY$                        0005                              Description:                                                                         HELPKEY$                        0006                                                                                                                   HELPKEY$                        0007                                The system variable named HELPKEY$ is a four-byte string. The                      HELPKEY$                        0008                                value of HELPLEY$ is set by an MTB program and subsequently used                   HELPKEY$                        0009                                by the Comet Help System. The HELPKEY$ value links a help message                  HELPKEY$                        0010                                to an MTB program using the following key:                                         HELPKEY$                        0011                                                                                                                   HELPKEY$                        0012                                   object name + HELPKEY$                                                          HELPKEY$                        0013                                                                                                                   HELPKEY$                        0014                                This may be used as an alternative to the screen position/program                  HELPKEY$                        0015                                address method of linking a help message to a specific program.                    HELPKEY$                        0016                                For example, if your program sets HELPKEY$ to a value of "ABCD"                    HELPKEY$                        0017                                and your object program is named "PROG1234", the help message                      HELPKEY$                        0018                                will be keyed as follows:                                                          HELPKEY$                        0019                                                                                                                   HELPKEY$                        0020                                   "PROG1234ABCD"                                                                  HELPKEY$                        0021                                                                                                                   HELPKEY$                        0022                                You may change the value of HELPKEY$ throughout a single MTB                       HELPKEY$                        0023                                program; each new value will effect a new help message link. This                  HELPKEY$                        0024                                is the way to link numerous help messages to a single object                       HELPKEY$                        0025                                program without using the screen position/program address method.                  HELPKEY$                        0026                                                                                                                   HELPKEY$                        0027                                If the HELPKEY$ variable is not set by your MTB program, the                       HELPKEY$                        0028                                system assigns it a null value, and the Comet Help System (if                      HELPKEY$                        0029                                invoked) will link help messages to the program as follows:                        HELPKEY$                        0030                                                                                                                   HELPKEY$                        0031                                   object name + screen position, or                                               HELPKEY$                        0032                                                                                                                   HELPKEY$                        0033                                   object name + screen position + program address                                 HOME                            0001                              Table of Contents                                                                    HOME                            0002                              =================                                                                    HOME                            0003                                                                                                                   HOME                            0004                                <Introduction to MoreThanBasic,#HELPMT2>                                           HOME                            0005                                <Language Structure,#HELPMT2>                                                      HOME                            0006                                   <Data Division,#HELPMT3>                                                        HOME                            0007                                   <I/O Format Division,#HELPMT3>                                                  HOME                            0008                                   <Procedure Division,#HELPMT4>                                                   HOME                            0009                                <Overview of the Comet File System,#HELPMT2>                                       HOME                            0010                                <Using the MTB Compiler,#HELPMT2>                                                  HOME                            0011                                <MTB Applications,#HELPMT5>                                                        HOME                            0012                                <Instant Reference Guide,#HELPMT6>                                                 HOME                            0013                                <Index|INDEX,#HELPMTB>                                                             I/O Format Division             0001                              I/O Format Division                                                                  I/O Format Division             0002                              ===================                                                                  I/O Format Division             0003                                                                                                                   I/O Format Division             0004                                The I/O Format Division is the second functional section of an                     I/O Format Division             0005                                MTB program. This division contains the input and output                           I/O Format Division             0006                                definitions for the program -- screen formats, printer formats,                    I/O Format Division             0007                                disk record formats, and other I/O device formats.                                 I/O Format Division             0008                                                                                                                   I/O Format Division             0009                                There is only one statement in this division, the <FORMAT>                         I/O Format Division             0010                                statement.                                                                         I/O Format Division             0011                                                                                                                   I/O Format Division             0012                                Also see:                                                                          I/O Format Division             0013                                <Format objects>                                                                   I/O Format Division             0014                                <format-item>                                                                      I/O Format Division             0015                                <length-override>                                                                  I/O Format Division             0016                                <@(position)>                                                                      I/O Format Division             0017                                <edit-mask>                                                                        ITERM$                          0001                              System variable:    ITERM$                                                           ITERM$                          0002                                                                                                                   ITERM$                          0003                              Length:             3                                                                ITERM$                          0004                                                                                                                   ITERM$                          0005                              Description:                                                                         ITERM$                          0006                                                                                                                   ITERM$                          0007                                The system variable named ITERM$ contains the identification                       ITERM$                          0008                                number of the initiating terminal for the current program. This                    ITERM$                          0009                                value is a three-byte string in the form "Tnn", where "nn" is a                    ITERM$                          0010                                value from "00" to "99".                                                           ITERM$                          0011                                                                                                                   ITERM$                          0012                                When a program is running in a foreground partition, the value of                  ITERM$                          0013                                ITERM$ is identical to TERM$. However, for a program running in a                  ITERM$                          0014                                background partition, TERM$ will contain a null value and ITERM$                   ITERM$                          0015                                will contain the identification number of the terminal initiating                  ITERM$                          0016                                the background process.                                                            LENGTH                          0001                              Syntax:                                                                              LENGTH                          0002                                                                                                                   LENGTH                          0003                                LENGTH length                                                                      LENGTH                          0004                                                                                                                   LENGTH                          0005                                (or)                                                                               LENGTH                          0006                                                                                                                   LENGTH                          0007                                LENGTH length.precision                                                            LENGTH                          0008                                                                                                                   LENGTH                          0009                              Discussion:                                                                          LENGTH                          0010                                                                                                                   LENGTH                          0011                                The LENGTH statement defines the length of string variables and                    LENGTH                          0012                                the length and precision of numeric variables in the current MTB                   LENGTH                          0013                                program.                                                                           LENGTH                          0014                                                                                                                   LENGTH                          0015                                The MTB compiler recognizes two formats for the LENGTH statement.                  LENGTH                          0016                                The first format defines the length of string variables. The                       LENGTH                          0017                                length parameter must be an integer from 1 to 254. This value                      LENGTH                          0018                                indicates the maximum number of characters that may be stored in                   LENGTH                          0019                                subsequent string variables. All string variables must be defined                  LENGTH                          0020                                at a specific length. There is no system-supplied default value.                   LENGTH                          0021                                                                                                                   LENGTH                          0022                                The second format includes a decimal point and the precision for                   LENGTH                          0023                                numeric variables. The maximum length is 16, while the maximum                     LENGTH                          0024                                precision is 15. Without a numeric LENGTH statement, the system-                   LENGTH                          0025                                supplied default value is 8.2 (i.e., the field will store eight                    LENGTH                          0026                                digits, two of which will be located to the right of the decimal                   LENGTH                          0027                                point).                                                                            LENGTH                          0028                                                                                                                   LENGTH                          0029                                Setting the proper field length is extremely important. If the                     LENGTH                          0030                                length is set too small, characters or digits will be truncated                    LENGTH                          0031                                (i.e., data will be lost).                                                         LENGTH                          0032                                                                                                                   LENGTH                          0033                                For example, if a string field is defined with a length of 10,                     LENGTH                          0034                                but more than ten characters are moved to that field, characters                   LENGTH                          0035                                following the tenth one will be truncated.                                         LENGTH                          0036                                                                                                                   LENGTH                          0037                                For numeric fields, truncation can occur on the left and right                     LENGTH                          0038                                side of the field. For example, if a numeric field is defined                      LENGTH                          0039                                with a length of 4.0, it can store values up to 9999. However, a                   LENGTH                          0040                                higher value will result in truncation on the left side of the                     LENGTH                          0041                                field.                                                                             LENGTH                          0042                                                                                                                   LENGTH                          0043                                Similarly, unless defined for rounding, numeric fields can be                      LENGTH                          0044                                truncated on the right side of the decimal point. For an                           LENGTH                          0045                                unrounded numeric field defined with a length and precision of                     LENGTH                          0046                                4.2, any value past the second decimal place will be truncated.                    LENGTH                          0047                                For more information on rounding, see the ROUND statement.                         LENGTH                          0048                                                                                                                   LENGTH                          0049                                In all cases of truncation, truncation occurs without warning of                   LENGTH                          0050                                any kind.                                                                          LENGTH                          0051                                                                                                                   LENGTH                          0052                                Also see <COMMON> and <LOCAL>.                                                     LENGTH                          0053                                                                                                                   LENGTH                          0054                              Example 1:                                                                           LENGTH                          0055                                                                                                                   LENGTH                          0056                                LENGTH 1.0                                                                         LENGTH                          0057                                LOCAL DATA                                                                         LENGTH                          0058                                                                                                                   LENGTH                          0059                                (or)                                                                               LENGTH                          0060                                                                                                                   LENGTH                          0061                                LENGTH 1.0 & LOCAL DATA                                                            LENGTH                          0062                                                                                                                   LENGTH                          0063                                This example shows the minimum length for a numeric variable. In                   LENGTH                          0064                                this case, the variable named DATA is defined with a length of                     LENGTH                          0065                                one digit and a precision of zero digits. Thus, this field can                     LENGTH                          0066                                store integers only in the range -9 through 9 (i.e., a single                      LENGTH                          0067                                digit).                                                                            LENGTH                          0068                                                                                                                   LENGTH                          0069                              Example 2:                                                                           LENGTH                          0070                                                                                                                   LENGTH                          0071                                LENGTH 8.2                                                                         LENGTH                          0072                                LOCAL DATA                                                                         LENGTH                          0073                                                                                                                   LENGTH                          0074                                (or)                                                                               LENGTH                          0075                                                                                                                   LENGTH                          0076                                LENGTH 8.2 & LOCAL DATA                                                            LENGTH                          0077                                                                                                                   LENGTH                          0078                                Here, the variable named DATA is defined with a length and                         LENGTH                          0079                                precision of 8.2 (coincidentally, the default length and                           LENGTH                          0080                                precision value). Thus, it can store up to six digits to the left                  LENGTH                          0081                                of the decimal point and two digits to the right.                                  LENGTH                          0082                                                                                                                   LENGTH                          0083                              Example 3:                                                                           LENGTH                          0084                                                                                                                   LENGTH                          0085                                LENGTH 1                                                                           LENGTH                          0086                                LOCAL FLAG$                                                                        LENGTH                          0087                                                                                                                   LENGTH                          0088                                (or)                                                                               LENGTH                          0089                                                                                                                   LENGTH                          0090                                LENGTH 1 & LOCAL FLAG$                                                             LENGTH                          0091                                                                                                                   LENGTH                          0092                                Here, the string variable named FLAG$ is defined with a length of                  LENGTH                          0093                                one character.                                                                     LENGTH                          0094                                                                                                                   LENGTH                          0095                              Example 4:                                                                           LENGTH                          0096                                                                                                                   LENGTH                          0097                                LENGTH 254                                                                         LENGTH                          0098                                LOCAL MEMO$                                                                        LENGTH                          0099                                                                                                                   LENGTH                          0100                                                                                                                   LENGTH                          0101                                (or)                                                                               LENGTH                          0102                                                                                                                   LENGTH                          0103                                LENGTH 254 & LOCAL MEMO$                                                           LENGTH                          0104                                                                                                                   LENGTH                          0105                                The string variable named MEMO$ is defined with the maximum                        LENGTH                          0106                                possible length 254. This variable can store up to 254 characters                  LENGTH                          0107                                of data.                                                                           LOCAL                           0001                              Syntax:                                                                              LOCAL                           0002                                                                                                                   LOCAL                           0003                                LOCAL variable-list                                                                LOCAL                           0004                                                                                                                   LOCAL                           0005                              Discussion:                                                                          LOCAL                           0006                                                                                                                   LOCAL                           0007                                The LOCAL statement defines all data variables that will be used                   LOCAL                           0008                                exclusively by the current MTB program (i.e., they will not be                     LOCAL                           0009                                shared with or "overlayed" to other MTB programs.)                                 LOCAL                           0010                                                                                                                   LOCAL                           0011                                All variables (other than Comet <system variables>) used in the                    LOCAL                           0012                                I/O Format Division or Procedure Division of a program must be                     LOCAL                           0013                                declared as <COMMON> or LOCAL.                                                     LOCAL                           0014                                                                                                                   LOCAL                           0015                                The variable-list includes MTB variable names, each separated by                   LOCAL                           0016                                a comma or blank space. Any number of variables can be declared                    LOCAL                           0017                                with one LOCAL statement.                                                          LOCAL                           0018                                                                                                                   LOCAL                           0019                                The LOCAL statement generally follows a related <LENGTH>                           LOCAL                           0020                                statement. String variables defined in the variable-list must be                   LOCAL                           0021                                preceded by a LENGTH statement defining the length of the fields.                  LOCAL                           0022                                Numeric variables do not necessarily require a LENGTH statement;                   LOCAL                           0023                                those with no preceding numeric LENGTH statement are assigned a                    LOCAL                           0024                                default length and precision of 8.2.                                               LOCAL                           0025                                                                                                                   LOCAL                           0026                                Array definitions must include the number of elements (or the                      LOCAL                           0027                                maximum number of indices for multi-dimensional arrays) as an                      LOCAL                           0028                                integer constant or symbolic constant enclosed in parentheses.                     LOCAL                           0029                                For example, ALPH$(26) defines a string array named ALPH$ with 26                  LOCAL                           0030                                elements, and VALUE(3,24) defines a numeric array named VALUE                      LOCAL                           0031                                with 3 columns and 24 rows.                                                        LOCAL                           0032                                                                                                                   LOCAL                           0033                                Note: LOCAL statements may be mixed with COMMON statements                         LOCAL                           0034                                without affecting the mapping of COMMON variables.                                 LOCAL                           0035                                                                                                                   LOCAL                           0036                              Application notes:                                                                   LOCAL                           0037                                                                                                                   LOCAL                           0038                                1. Defining some variables as COMMON and some as LOCAL allows you                  LOCAL                           0039                                   to initialize selected variables with the CLEARCOMMON and                       LOCAL                           0040                                   CLEARLOCAL statements. For more information, see the                            LOCAL                           0041                                   <CLEAR,#HELPMT4>> statement.                                                    LOCAL                           0042                                                                                                                   LOCAL                           0043                                2. Frequently, data variables definitions are used in more than                    LOCAL                           0044                                   one source program. In these cases, the most practical way to                   LOCAL                           0045                                   compile the same definitions into multiple programs is to                       LOCAL                           0046                                   define them in "usefiles."  Then, in each individual source                     LOCAL                           0047                                   program, all you need to do is include the USE directive  the                  LOCAL                           0048                                   corresponding usefile definitions will automatically be                         LOCAL                           0049                                   included in the resulting compiled program.                                     LOCAL                           0050                                                                                                                   LOCAL                           0051                              Example 1:                                                                           LOCAL                           0052                                                                                                                   LOCAL                           0053                                LENGTH 25                                                                          LOCAL                           0054                                LENGTH 9.2                                                                         LOCAL                           0055                                LOCAL NAME$, ADDRESS1$, ADDRESS2$, CRLIMIT                                         LOCAL                           0056                                                                                                                   LOCAL                           0057                                In the above example, three string variables and one numeric                       LOCAL                           0058                                variable are defined as local data variables. The LENGTH                           LOCAL                           0059                                statements preceding the LOCAL statement determines the length                     LOCAL                           0060                                and precision of the fields listed in the LOCAL statement.                         LOCAL                           0061                                                                                                                   LOCAL                           0062                                For example, LENGTH 25 defines the length of NAME$, ADDRESS1$,                     LOCAL                           0063                                and ADDRESS2$ (i.e., they will each store a maximum of 25                          LOCAL                           0064                                characters). The LENGTH 9.2 statement defines the length and                       LOCAL                           0065                                precision of the numeric variable CRLIMIT (i.e., it will store up                  LOCAL                           0066                                to nine digits, two of which will be to the right of the decimal                   LOCAL                           0067                                point).                                                                            LOCAL                           0068                                                                                                                   LOCAL                           0069                              Example 2:                                                                           LOCAL                           0070                                                                                                                   LOCAL                           0071                                LENGTH 10 & LOCAL ZIPCODE$                                                         LOCAL                           0072                                                                                                                   LOCAL                           0073                                This example shows how two statements may be written on a single                   LOCAL                           0074                                source program line. In this case, the LENGTH 10 statement                         LOCAL                           0075                                declares that the following string fields will store a maximum of                  LOCAL                           0076                                ten characters. The ampersand symbol (&) indicates that another                    LOCAL                           0077                                statement follows on the same line. The LOCAL statement defines a                  LOCAL                           0078                                local string variable called ZIPCODE$.                                             LONGYEAR                        0001                              System variable:    LONGYEAR                                                         LONGYEAR                        0002                                                                                                                   LONGYEAR                        0003                              Length/precision:   4.0                                                              LONGYEAR                        0004                                                                                                                   LONGYEAR                        0005                              Description:                                                                         LONGYEAR                        0006                                                                                                                   LONGYEAR                        0007                                The system variable named LONGYEAR is a four-digit numeric                         LONGYEAR                        0008                                variable whose value equals the current year (e.g., 1996). This                    LONGYEAR                        0009                                value is obtained from the DOS system date.                                        LONGYEAR                        0010                                                                                                                   LONGYEAR                        0011                                See <LONGYEAR$>.                                                                   LONGYEAR$                       0001                              System variable:    LONGYEAR$                                                        LONGYEAR$                       0002                                                                                                                   LONGYEAR$                       0003                              Length:             4                                                                LONGYEAR$                       0004                                                                                                                   LONGYEAR$                       0005                              Description:                                                                         LONGYEAR$                       0006                                                                                                                   LONGYEAR$                       0007                                The system variable named LONGYEAR is a four-byte string whose                     LONGYEAR$                       0008                                value equals the current year (e.g., "1996"). This value is                        LONGYEAR$                       0009                                obtained from the DOS system date.                                                 LONGYEAR$                       0010                                                                                                                   LONGYEAR$                       0011                                See <LONGYEAR>.                                                                    MESSAGE$                        0001                              System variable:    MESSAGE$                                                         MESSAGE$                        0002                                                                                                                   MESSAGE$                        0003                              Length:             32                                                               MESSAGE$                        0004                                                                                                                   MESSAGE$                        0005                              Description:                                                                         MESSAGE$                        0006                                                                                                                   MESSAGE$                        0007                                The system variable named MESSAGE$ is a 32-byte string whose                       MESSAGE$                        0008                                value is set by your MTB program.                                                  MESSAGE$                        0009                                                                                                                   MESSAGE$                        0010                                *  When a <RUN,#HELPMT4> statement is executed, the contents of                    MESSAGE$                        0011                                   MESSAGE$ are passed to the overlay program running in the same                  MESSAGE$                        0012                                   partition.                                                                      MESSAGE$                        0013                                                                                                                   MESSAGE$                        0014                                *  When an <ENTER,#HELPMT4> statement is executed, the contents                    MESSAGE$                        0015                                   of MESSAGE are passed to the subprogram running in the same                     MESSAGE$                        0016                                   partition.                                                                      MESSAGE$                        0017                                                                                                                   MESSAGE$                        0018                                *  When a partition executes an <ACTIVATE,#HELPMT4> statement,                     MESSAGE$                        0019                                   the contents of MESSAGE$ are passed to the activated                            MESSAGE$                        0020                                   partition.                                                                      MESSAGE$                        0021                                                                                                                   MESSAGE$                        0022                                *  When a partition executes the <INTERRUPT,#HELPMT4> statement,                   MESSAGE$                        0023                                   the contents of MESSAGE$ are passed to the interrupted                          MESSAGE$                        0024                                   partition.                                                                      PARTITION$                      0001                              System variable:    PARTITION$                                                       PARTITION$                      0002                                                                                                                   PARTITION$                      0003                              Length:             3                                                                PARTITION$                      0004                                                                                                                   PARTITION$                      0005                              Description:                                                                         PARTITION$                      0006                                                                                                                   PARTITION$                      0007                                The system variable named PARTITION$ is a three-byte string                        PARTITION$                      0008                                containing the identification number of the partition running the                  PARTITION$                      0009                                current program. This value is in the form "Pnn", where "nn" is a                  PARTITION$                      0010                                value from "00" to "99".                                                           PRIORITY$                       0001                              System variable:    PRIORITY$                                                        PRIORITY$                       0002                                                                                                                   PRIORITY$                       0003                              Length:             1                                                                PRIORITY$                       0004                                                                                                                   PRIORITY$                       0005                              Description:                                                                         PRIORITY$                       0006                                                                                                                   PRIORITY$                       0007                                The system variable named PRIORITY$ is a one-byte string with a                    PRIORITY$                       0008                                value ranging from "00" hex to "FF" hex. The value of PRIORITY$                    PRIORITY$                       0009                                represents the number of task breaks Comet will skip before                        PRIORITY$                       0010                                reactivating the task. The higher the number, the slower this                      PRIORITY$                       0011                                program will run relative to other programs. PRIORITY$ can be                      PRIORITY$                       0012                                interrogated and set by an MTB program.                                            PRIORITY$                       0013                                                                                                                   PRIORITY$                       0014                              Example 1:                                                                           PRIORITY$                       0015                                                                                                                   PRIORITY$                       0016                                A=HEXDEC(PRIORITY$)                                                                PRIORITY$                       0017                                                                                                                   PRIORITY$                       0018                                This example shows how to interrogate the system variable named                    PRIORITY$                       0019                                PRIORITY$. In this example, the priority value is converted to                     PRIORITY$                       0020                                decimal and moved to a numeric variable named A.                                   PRIORITY$                       0021                                                                                                                   PRIORITY$                       0022                              Example 2:                                                                           PRIORITY$                       0023                                                                                                                   PRIORITY$                       0024                                PRINT (0) "ENTER NEW PRIORITY (0 - 255):"                                          PRIORITY$                       0025                                INPUT (0) VALUE                                                                    PRIORITY$                       0026                                PRIORITY$ = DECHEX(VALUE,ERR)                                                      PRIORITY$                       0027                                                                                                                   PRIORITY$                       0028                                This example shows how to set the PRIORITY$ value. In this                         PRIORITY$                       0029                                program segment, the user is prompted for a new priority value.                    PRIORITY$                       0030                                The number is entered in decimal form, converted to hex, and                       PRIORITY$                       0031                                assigned to the system variable named PRIORITY$.                                   Printer control codes           0001                              Printer control codes                                                                Printer control codes           0002                              =====================                                                                Printer control codes           0003                                                                                                                   Printer control codes           0004                                MTB includes several control codes for printers. These perform                     Printer control codes           0005                                typical printer functions, such as form feed, line feed, carriage                  Printer control codes           0006                                return, and more.                                                                  Printer control codes           0007                                                                                                                   Printer control codes           0008                                The printer control codes are summarized below.                                    Printer control codes           0009                                                                                                                   Printer control codes           0010                                Printer                                                                            Printer control codes           0011                                Control                                                                            Printer control codes           0012                                Code         Description                                                           Printer control codes           0013                                =================================================================                  Printer control codes           0014                                <(CR)>       Carriage return to the beginning of the next line                     Printer control codes           0015                                <(FF)>       Form feed to the top of the next page                                 Printer control codes           0016                                <(LF)>       Line feed                                                             Printer control codes           0017                                <(LS)>       Linefeed suppress                                                     Printer control codes           0018                                <(SL=n)>     Skip n lines                                                          ROUND                           0001                              Syntax:                                                                              ROUND                           0002                                                                                                                   ROUND                           0003                                ROUND [numeric-variable-list]                                                      ROUND                           0004                                                                                                                   ROUND                           0005                              Discussion:                                                                          ROUND                           0006                                                                                                                   ROUND                           0007                                The ROUND statement defines numeric variables to be rounded                        ROUND                           0008                                rather than truncated.                                                             ROUND                           0009                                                                                                                   ROUND                           0010                                The numeric-variable-list includes the names of the previously-                    ROUND                           0011                                defined numeric variables that are to be rounded.                                  ROUND                           0012                                                                                                                   ROUND                           0013                                The numeric-variable-list is optional. If it is not included, all                  ROUND                           0014                                numeric variable definitions following the ROUND statement will                    ROUND                           0015                                be rounded.                                                                        ROUND                           0016                                                                                                                   ROUND                           0017                                Rounding or truncating occurs when the precision of the result of                  ROUND                           0018                                a numeric operation or expression exceeds the defined precision                    ROUND                           0019                                of a receiving numeric variable. If the digit following the                        ROUND                           0020                                right-most defined digit is greater than or equal to 5, the                        ROUND                           0021                                number is rounded up; otherwise the extra digits are truncated.                    ROUND                           0022                                                                                                                   ROUND                           0023                                Also see <LENGTH>.                                                                 ROUND                           0024                                                                                                                   ROUND                           0025                              Example 1:                                                                           ROUND                           0026                                                                                                                   ROUND                           0027                                LENGTH 8.2                                                                         ROUND                           0028                                LOCAL VALUE1, VALUE2                                                               ROUND                           0029                                ROUND VALUE1                                                                       ROUND                           0030                                                                                                                   ROUND                           0031                                In this example, two numeric variables are defined with a length                   ROUND                           0032                                and precision of 8.2. However, just the first one (VALUE1) is                      ROUND                           0033                                specified for rounding. Any operation which produces a value to                    ROUND                           0034                                be stored in VALUE1 will round the value to the second decimal                     ROUND                           0035                                place. A similar operation with VALUE2 will truncate (not round)                   ROUND                           0036                                the data past the second decimal place.                                            ROUND                           0037                                                                                                                   ROUND                           0038                              Example 2:                                                                           ROUND                           0039                                                                                                                   ROUND                           0040                                ROUND                                                                              ROUND                           0041                                LENGTH 8.2                                                                         ROUND                           0042                                LOCAL VALUE1, VALUE2                                                               ROUND                           0043                                LENGTH 5.3                                                                         ROUND                           0044                                COMMON DATA1, DATA2                                                                ROUND                           0045                                                                                                                   ROUND                           0046                                Here, the ROUND statement appears before the definitions of the                    ROUND                           0047                                data variables. This means that all the numeric variables                          ROUND                           0048                                following the ROUND statement will be rounded.                                     ROUND                           0049                                                                                                                   ROUND                           0050                              Example 3:                                                                           ROUND                           0051                                                                                                                   ROUND                           0052                                LENGTH 8.2                                                                         ROUND                           0053                                LOCAL VALUE(50)                                                                    ROUND                           0054                                ROUND VALUE                                                                        ROUND                           0055                                                                                                                   ROUND                           0056                                In this example, the ROUND statement is applied to an array                        ROUND                           0057                                called VALUE (which contains 50 elements, all with a length and                    ROUND                           0058                                precision of 8.2). The ROUND statement will affect all elements                    ROUND                           0059                                in the array (i.e., they will all be rounded).                                     RUNSTATE                        0001                              System variable:    RUNSTATE                                                         RUNSTATE                        0002                                                                                                                   RUNSTATE                        0003                              Length/precision:   1.0                                                              RUNSTATE                        0004                                                                                                                   RUNSTATE                        0005                              Description:                                                                         RUNSTATE                        0006                                                                                                                   RUNSTATE                        0007                                The system variable named RUNSTATE contains a value indicating                     RUNSTATE                        0008                                the status of the current partition. RUNSTATE is a one-digit                       RUNSTATE                        0009                                numeric variable containing 0, 1, or 2. RUNSTATE is maintained by                  RUNSTATE                        0010                                Comet and used by the QMONITOR program. The value of RUNSTATE is                   RUNSTATE                        0011                                unique for each partition.                                                         RUNSTATE                        0012                                                                                                                   RUNSTATE                        0013                                RUNSTATE     Description                                                           RUNSTATE                        0014                                =================================================================                  RUNSTATE                        0015                                0            QMONITOR will not require a password upon being run                   RUNSTATE                        0016                                             in the current partition. This follows any action                     RUNSTATE                        0017                                             where the user runs a program and then returns to                     RUNSTATE                        0018                                             the QMONITOR program.                                                 RUNSTATE                        0019                                                                                                                   RUNSTATE                        0020                                1            The user pressed F3 to escape from a program (and                     RUNSTATE                        0021                                             return to the QMONITOR program), or a TERMINATE                       RUNSTATE                        0022                                             operation returned the partition to the QMONITOR                      RUNSTATE                        0023                                             program. If QMONITOR contains a program-to-be-run                     RUNSTATE                        0024                                             for the user, a password will be required;                            RUNSTATE                        0025                                             otherwise, no password will be required.                              RUNSTATE                        0026                                                                                                                   RUNSTATE                        0027                                2            the user will always have to enter a password. Comet                  RUNSTATE                        0028                                             assigns this value to RUNSTATE whenever the current                   RUNSTATE                        0029                                             partition is cleared. Thus, any user signing on into                  RUNSTATE                        0030                                             the current partition will be required to enter a                     RUNSTATE                        0031                                             password at the security QMONITOR program.                            SYSPART$                        0001                              System variable:    SYSPART$                                                         SYSPART$                        0002                                                                                                                   SYSPART$                        0003                              Length:             3                                                                SYSPART$                        0004                                                                                                                   SYSPART$                        0005                              Description:                                                                         SYSPART$                        0006                                                                                                                   SYSPART$                        0007                                The system variable named SYSPART$ is a three-byte string                          SYSPART$                        0008                                containing the name of the most recently activated background                      SYSPART$                        0009                                partition. This value is in the form "Pnn", where "nn" is a value                  SYSPART$                        0010                                from "00" to "99".                                                                 TERM$                           0001                              System variable:    TERM$                                                            TERM$                           0002                                                                                                                   TERM$                           0003                              Length:             3                                                                TERM$                           0004                                                                                                                   TERM$                           0005                              Description:                                                                         TERM$                           0006                                                                                                                   TERM$                           0007                                The system variable named TERM$ contains the identification                        TERM$                           0008                                number of the terminal for the current program. This value is a                    TERM$                           0009                                three-byte string in the form "Tnn", where "nn" is a value from                    TERM$                           0010                                "00" to "99".                                                                      TERM$                           0011                                                                                                                   TERM$                           0012                                When a program is running in a foreground partition, the value of                  TERM$                           0013                                TERM$ is identical to ITERM$. However, for a program running in a                  TERM$                           0014                                background partition, TERM$ will contain a null value and ITERM$                   TERM$                           0015                                will contain the identification number of the terminal initiating                  TERM$                           0016                                the background process.!                                                           TIME$                           0001                              System variable:    TIME$                                                            TIME$                           0002                                                                                                                   TIME$                           0003                              Length:             11                                                               TIME$                           0004                                                                                                                   TIME$                           0005                              Description:                                                                         TIME$                           0006                                                                                                                   TIME$                           0007                                The system variable named TIME$ contains the current system time.                  TIME$                           0008                                This variable is an 11-byte string in the format "HH:MM:SS.DD",                    TIME$                           0009                                where "HH" represents the hour in 24-hour format, "MM" represents                  TIME$                           0010                                the minute from 0 to 60, "SS" represents the second from 0 to 60,                  TIME$                           0011                                and "DD" represents the hundredths of a second from 0 to 99.                       TIME$                           0012                                                                                                                   TIME$                           0013                                Even though all Comet systems have a clock, TIME$ is not updated                   TIME$                           0014                                until the clock is opened and read. The name usually configured                    TIME$                           0015                                for the clock is CL1 (although an alternative name can be chosen                   TIME$                           0016                                during system configuration).                                                      VERSION$                        0001                              System variable:    VERSION$                                                         VERSION$                        0002                                                                                                                   VERSION$                        0003                              Length:             7                                                                VERSION$                        0004                                                                                                                   VERSION$                        0005                              Description:                                                                         VERSION$                        0006                                                                                                                   VERSION$                        0007                                The system variable named VERSION$ contains the current version                    VERSION$                        0008                                number of Comet. This seven-byte string is in the form "XXX.YYY",                  VERSION$                        0009                                where "XXX" represents the major release level and "YYY"                           VERSION$                        0010                                represents the update release level.                                               VERSION$                        0011                                                                                                                   VERSION$                        0012                                For example, for Comet release 504.189, VERSION$ would equal                       VERSION$                        0013                                "504.189".                                                                         Variable classification         0001                              Variable classification                                                              Variable classification         0002                              =======================                                                              Variable classification         0003                                                                                                                   Variable classification         0004                                Finally, each variable must be classified as "local" or "common."                  Variable classification         0005                                Local variables are those intended for a single program only.                      Variable classification         0006                                Common variables, on the other hand, are those to be shared with                   Variable classification         0007                                -- or "passed to" -- other MTB programs (program overlays or                       Variable classification         0008                                programs running in background partitions). Therefore, each                        Variable classification         0009                                variable must be defined according to its intended purpose within                  Variable classification         0010                                the application.                                                                   Variable classification         0011                                                                                                                   Variable classification         0012                                Common variables must be defined in the same order and with the                    Variable classification         0013                                same length (and precision) in all programs that share the data.                   Variable classification         0014                                They do not have to have the same variable names in separate                       Variable classification         0015                                programs, though; they just need to be mapped in the same order                    Variable classification         0016                                and with the same size.                                                            Variable classification         0017                                                                                                                   Variable classification         0018                                See the <LOCAL> and <COMMON> statements for more information.                      Variable classification         0019                                                                                                                   Variable classification         0020                                Also see:                                                                          Variable classification         0021                                                                                                                   Variable classification         0022                                <Variable names>                                                                   Variable classification         0023                                <Variable types>                                                                   Variable classification         0024                                <Variable length>                                                                  Variable length                 0001                              Variable length                                                                      Variable length                 0002                              ===============                                                                      Variable length                 0003                                                                                                                   Variable length                 0004                                Each variable must also be assigned an exact storage length.                       Variable length                 0005                                                                                                                   Variable length                 0006                                *  For string variables, this is the maximum number of characters                  Variable length                 0007                                   that may be stored in the particular memory location; string                    Variable length                 0008                                   length is an integer value between 1 and 254.                                   Variable length                 0009                                                                                                                   Variable length                 0010                                *  For numeric variables, the length definition includes the                       Variable length                 0011                                   maximum number of digits that may be stored (length) and the                    Variable length                 0012                                   maximum number of decimal digits (precision); system limits                     Variable length                 0013                                   are 16 digits maximum for length and 15 digits for precision.                   Variable length                 0014                                                                                                                   Variable length                 0015                                See the <LENGTH> statement for additional information.                             Variable length                 0016                                                                                                                   Variable length                 0017                                Also see:                                                                          Variable length                 0018                                                                                                                   Variable length                 0019                                <Variable names>                                                                   Variable length                 0020                                <Variable types>                                                                   Variable length                 0021                                <Variable classification>                                                          Variable names                  0001                              Variable names                                                                       Variable names                  0002                              ==============                                                                       Variable names                  0003                                                                                                                   Variable names                  0004                                Variable names are alphanumeric descriptions of specific memory                    Variable names                  0005                                locations. Variable names must begin with a letter (A through Z,                   Variable names                  0006                                upper/lowercase) and may contain upper/lowercase letters,                          Variable names                  0007                                numbers, and imbedded periods, but no blank spaces or other                        Variable names                  0008                                imbedded special characters.                                                       Variable names                  0009                                                                                                                   Variable names                  0010                                Variable names may be any number of characters long, although the                  Variable names                  0011                                MTB compiler recognizes only the first 30 characters of the name.                  Variable names                  0012                                Therefore, the first 30 characters of a variable name must be                      Variable names                  0013                                unique within a given program.                                                     Variable names                  0014                                                                                                                   Variable names                  0015                                String variable names must include a dollar sign ($) as the final                  Variable names                  0016                                character of the name. Numeric variable names do not have any                      Variable names                  0017                                special character at the end. Thus, the MTB compiler recognizes                    Variable names                  0018                                the difference between string names and numeric names based on                     Variable names                  0019                                the "$" at the end of string variable names.                                       Variable names                  0020                                                                                                                   Variable names                  0021                                Subscripted variable names end with parentheses, where the values                  Variable names                  0022                                inside of the parentheses represent the index(es) to the                           Variable names                  0023                                array/matrix.                                                                      Variable names                  0024                                                                                                                   Variable names                  0025                                Also see:                                                                          Variable names                  0026                                                                                                                   Variable names                  0027                                <Variable types>                                                                   Variable names                  0028                                <Variable length>                                                                  Variable names                  0029                                <Variable classification>                                                          Variable names                  0030                                                                                                                   Variable names                  0031                              Examples:                                                                            Variable names                  0032                                                                                                                   Variable names                  0033                                String variable names       Numeric variable names                                 Variable names                  0034                                =====================       ======================                                 Variable names                  0035                                A$, B$, C$                  A, B, C                                                Variable names                  0036                                a$, b$, c$                  a, b, c                                                Variable names                  0037                                XYZ123$                     QRS456                                                 Variable names                  0038                                VALUE$                      VALUE                                                  Variable names                  0039                                ZIPCODE$                    CRLIMIT                                                Variable names                  0040                                ZIP.CODE$                   CREDIT.LIMIT                                           Variable names                  0041                                Zip.code$                   Credit.limit                                           Variable names                  0042                                TABLE$(5,8)                 HISTORY(10,3,2)                                        Variable types                  0001                              Variable types                                                                       Variable types                  0002                              ==============                                                                       Variable types                  0003                                                                                                                   Variable types                  0004                                The definition of a variable's type is a function of its name.                     Variable types                  0005                                String variable names must include a dollar sign ($) as the final                  Variable types                  0006                                character of the name. Numeric variable names do not have any                      Variable types                  0007                                special character at the end. Thus, the MTB compiler recognizes                    Variable types                  0008                                the difference between string names and numeric names based on                     Variable types                  0009                                the "$" at the end of string variable names.                                       Variable types                  0010                                                                                                                   Variable types                  0011                                Also see:                                                                          Variable types                  0012                                                                                                                   Variable types                  0013                                <Variable names>                                                                   Variable types                  0014                                <Variable length>                                                                  Variable types                  0015                                <Variable classification>                                                          Variable types                  0016                                                                                                                   Variable types                  0017                              Examples:                                                                            Variable types                  0018                                                                                                                   Variable types                  0019                                String variable             Numeric variable                                       Variable types                  0020                                ===============             ================                                       Variable types                  0021                                                                                                                   Variable types                  0022                                TESTDATA$                   TESTDATA                                               Video Control Code Summary      0001                              Video Control Code Summary                                                           Video Control Code Summary      0002                              ==========================                                                           Video Control Code Summary      0003                                                                                                                   Video Control Code Summary      0004                                <(Auto TAB Off)>                                                                   Video Control Code Summary      0005                                <(Auto TAB On)>                                                                    Video Control Code Summary      0006                                <(Blink)>                                                                          Video Control Code Summary      0007                                <(Bright)>                                                                         Video Control Code Summary      0008                                <(BF)> -- blank fill                                                               Video Control Code Summary      0009                                <(BM)> -- blind mode                                                               Video Control Code Summary      0010                                <(CF)> -- clear foreground                                                         Video Control Code Summary      0011                                <(CFLD)> -- clear field                                                            Video Control Code Summary      0012                                <(CH)> -- cursor home                                                              Video Control Code Summary      0013                                <(Change Color)>                                                                   Video Control Code Summary      0014                                <(Change Colors)>                                                                  Video Control Code Summary      0015                                <(Check Box Off)>                                                                  Video Control Code Summary      0016                                <(Check Box On)>                                                                   Video Control Code Summary      0017                                <(Close Icon)>                                                                     Video Control Code Summary      0018                                <(CPL132)>                                                                         Video Control Code Summary      0019                                <(CPL64)>                                                                          Video Control Code Summary      0020                                <(CPL80)>                                                                          Video Control Code Summary      0021                                <(CR)> -- cursor return                                                            Video Control Code Summary      0022                                <(Create Window)>                                                                  Video Control Code Summary      0023                                <(CS)> -- clear screen                                                             Video Control Code Summary      0024                                <(DE)> -- default mode                                                             Video Control Code Summary      0025                                <(Delete Window)>                                                                  Video Control Code Summary      0026                                <(Draw box)>                                                                       Video Control Code Summary      0027                                <(EN)> -- enter normal mode                                                        Video Control Code Summary      0028                                <(Enhanced Characters Off)>                                                        Video Control Code Summary      0029                                <(Enhanced Characters On)>                                                         Video Control Code Summary      0030                                <(ET)> -- enter typewriter mode                                                    Video Control Code Summary      0031                                <(FT)> -- force transmit                                                           Video Control Code Summary      0032                                <(Full Scan Codes Passed)>                                                         Video Control Code Summary      0033                                <(Hide Cursor)>                                                                    Video Control Code Summary      0034                                <(Insert Off)>                                                                     Video Control Code Summary      0035                                <(Insert On)>                                                                      Video Control Code Summary      0036                                <(Invoke HELP)>                                                                    Video Control Code Summary      0037                                <(LD)> -- line delete                                                              Video Control Code Summary      0038                                <(LI)> -- line insert                                                              Video Control Code Summary      0039                                <(MC)> -- remember cursor                                                          Video Control Code Summary      0040                                <(Partial Scan Codes Off)>                                                         Video Control Code Summary      0041                                <(Partial Scan Codes On)>                                                          Video Control Code Summary      0042                                <(Radio Button Off)>                                                               Video Control Code Summary      0043                                <(Radio Button On)>                                                                Video Control Code Summary      0044                                <(RB)> -- ring bell                                                                Video Control Code Summary      0045                                <(RC)> -- restore cursor                                                           Video Control Code Summary      0046                                <(RD)> -- roll down                                                                Video Control Code Summary      0047                                <(Request ID)>                                                                     Video Control Code Summary      0048                                <(Restore Screen)>                                                                 Video Control Code Summary      0049                                <(RJ)> -- right justify mark                                                       Video Control Code Summary      0050                                <(RU)> -- roll up                                                                  Video Control Code Summary      0051                                <(Save Screen)>                                                                    Video Control Code Summary      0052                                <(SB)> -- start background                                                         Video Control Code Summary      0053                                <(Scan Codes Off)>                                                                 Video Control Code Summary      0054                                <(SF)> -- start foreground                                                         Video Control Code Summary      0055                                <(SSB)> -- start suppressed background                                             Video Control Code Summary      0056                                <(Shell to DOS)>                                                                   Video Control Code Summary      0057                                <(Show cursor)>                                                                    Video Control Code Summary      0058                                <(Single Key Transmit)>                                                            Video Control Code Summary      0059                                <(Std Keyboard Off)>                                                               Video Control Code Summary      0060                                <(Std Keyboard On)>                                                                Video Control Code Summary      0061                                <(Switch Session)>                                                                 Video Control Code Summary      0062                                <(TM)> -- transmit mark                                                            Video Control Code Summary      0063                                <(TP)> -- transmit stop mark                                                       Video Control Code Summary      0064                                <(WC)> -- write to control line                                                    Video Control Code Summary      0065                                <(Window Title Foreground)>                                                        Video Control Code Summary      0066                                <(Window Title Background)>                                                        Video Control Codes             0001                              Video Control Codes                                                                  Video Control Codes             0002                              ===================                                                                  Video Control Codes             0003                                                                                                                   Video Control Codes             0004                                Video control codes are used within FORMAT statements to set                       Video Control Codes             0005                                various modes for video devices (terminals, monitors). These                       Video Control Codes             0006                                modes include display modes, input modes, and other                                Video Control Codes             0007                                characteristics for the video device.                                              Video Control Codes             0008                                                                                                                   Video Control Codes             0009                                Initially, the video device will placed in a specific display                      Video Control Codes             0010                                mode -- there are three control codes for this purpose: (CPL64),                   Video Control Codes             0011                                (CPL80), and (DE). These are used to set 64 characters per line,                   Video Control Codes             0012                                80 characters per line, or the configured default characters per                   Video Control Codes             0013                                line, respectively.                                                                Video Control Codes             0014                                                                                                                   Video Control Codes             0015                                Next, the video device will be placed in typewriter mode or                        Video Control Codes             0016                                normal mode. In typewriter mode, the screen display scrolls from                   Video Control Codes             0017                                bottom to top. In normal mode, the screen is used in a non-                        Video Control Codes             0018                                scrolling fashion. The (ET) and (EN) control codes are used to                     Video Control Codes             0019                                place the screen in typewriter mode or normal mode, respectively.                  Video Control Codes             0020                                                                                                                   Video Control Codes             0021                                Another display characteristic is foreground mode versus                           Video Control Codes             0022                                background mode. In foreground mode, data is displayed in normal                   Video Control Codes             0023                                video (usually light characters on a dark background), while                       Video Control Codes             0024                                background mode shows the data in inverse video (usually dark                      Video Control Codes             0025                                characters on a light background). The (SF) control code is used                   Video Control Codes             0026                                to "start foreground," while the (SB) control is used to "start                    Video Control Codes             0027                                background."                                                                       Video Control Codes             0028                                                                                                                   Video Control Codes             0029                                By design, all data entry areas on the video screen are                            Video Control Codes             0030                                foreground areas. It follows that non-data entry areas are not                     Video Control Codes             0031                                foreground (i.e., they are background or "suppressed                               Video Control Codes             0032                                background"). Since the data entry cursor will only land in a                      Video Control Codes             0033                                foreground area, data entry screen formats can be designed with a                  Video Control Codes             0034                                combination of background prompts and foreground data entry                        Video Control Codes             0035                                areas.                                                                             Video Control Codes             0036                                                                                                                   Video Control Codes             0037                                Suppressed background is a special type of background. It may                      Video Control Codes             0038                                contain special formatting symbols, such as transmit marks and                     Video Control Codes             0039                                right justify marks, or may contain blank spaces. In the latter                    Video Control Codes             0040                                case, the blank spaces may not be considered as data entry areas                   Video Control Codes             0041                                since they are not in foreground mode.                                             Video Control Codes             0042                                                                                                                   Video Control Codes             0043                                Comet's terminal protocol uses block data transmission. This                       Video Control Codes             0044                                means that data entered from the keyboard of an terminal or other                  Video Control Codes             0045                                video device is buffered in terminal until a specified point                      Video Control Codes             0046                                then, the entire block is transferred to the terminal adapter                      Video Control Codes             0047                                board (and the CPU). This method results in a more efficient                       Video Control Codes             0048                                input/output of terminal data.                                                     Video Control Codes             0049                                                                                                                   Video Control Codes             0050                                MTB uses transmit marks to define the size of the input buffer. A                  Video Control Codes             0051                                transmit mark character is placed at the beginning of the data                     Video Control Codes             0052                                entry area, and another transmit mark is placed on the screen                      Video Control Codes             0053                                following the final field to be included in the input buffer. You                  Video Control Codes             0054                                may use transmit marks around individual fields, or you may                        Video Control Codes             0055                                include many fields within two transmit marks. In either case,                     Video Control Codes             0056                                the data entered between the two transmit marks will not be                        Video Control Codes             0057                                transmitted from the terminal until the cursor passes over the                     Video Control Codes             0058                                second transmit mark (by using the Enter, Tab, or Return key).                     Video Control Codes             0059                                                                                                                   Video Control Codes             0060                                The (TM) control code is used to place a transmit mark at a given                  Video Control Codes             0061                                point on the video screen. An alternative transmit mark, the                       Video Control Codes             0062                                transmit stop mark, may also be used. The control code for a                       Video Control Codes             0063                                transmit stop mark is (TP).                                                        Video Control Codes             0064                                                                                                                   Video Control Codes             0065                                MTB also provides a control code to protect data entry in numeric                  Video Control Codes             0066                                fields. The (RJ) code establishes a right justified field, where                   Video Control Codes             0067                                only numeric values and a minus sign are allowed to be entered                     Video Control Codes             0068                                (other characters are not accepted from the keyboard). The (RJ)                    Video Control Codes             0069                                control is placed immediately before a numeric data entry field                   Video Control Codes             0070                                one (RJ) mark must be used for each numeric data entry field.                      Video Control Codes             0071                                                                                                                   Video Control Codes             0072                                Transmit marks and right justify marks appear in suppressed                        Video Control Codes             0073                                background (as "invisible" characters) or, for debugging                           Video Control Codes             0074                                purposes, can be configured to show on any PC monitor screen.                      Video Control Codes             0075                                                                                                                   Video Control Codes             0076                                MTB provides several general purpose control codes, including                      Video Control Codes             0077                                (CS) for clearing the entire screen, (CF) for clearing only the                    Video Control Codes             0078                                foreground areas of the screen, and (CFLD) for clearing a single                   Video Control Codes             0079                                data entry field.                                                                  Video Control Codes             0080                                                                                                                   Video Control Codes             0081                                The (BF) control code provides a simple way to fill an entire                      Video Control Codes             0082                                line with blanks.                                                                  Video Control Codes             0083                                                                                                                   Video Control Codes             0084                                Cursor control is also provided through MTB's video control                        Video Control Codes             0085                                codes. The (CH) control moves the cursor to the "home" position                    Video Control Codes             0086                                (i.e., the upper left corner of the screen or the first available                  Video Control Codes             0087                                foreground position from the upper left). The (CR) control                         Video Control Codes             0088                                provides a "cursor return" feature to move the cursor to the                       Video Control Codes             0089                                beginning of the next line. The (MC) control is used to remember                   Video Control Codes             0090                                the cursor's position, and the (RC) is used to restore the cursor                  Video Control Codes             0091                                to its remembered position.                                                        Video Control Codes             0092                                                                                                                   Video Control Codes             0093                                You may also place the cursor at any foreground screen location                    Video Control Codes             0094                                by specifying a position directive. Consider the following                         Video Control Codes             0095                                example:                                                                           Video Control Codes             0096                                                                                                                   Video Control Codes             0097                                100 <FORMAT> @(10,15)                                                              Video Control Codes             0098                                .                                                                                  Video Control Codes             0099                                .                                                                                  Video Control Codes             0100                                .                                                                                  Video Control Codes             0101                                <PRINT,#HELPMT4> (0,100)                                                           Video Control Codes             0102                                                                                                                   Video Control Codes             0103                                This example uses a cursor positioning directive to move the                       Video Control Codes             0104                                cursor to column 10, row 15. If this location is a foreground                      Video Control Codes             0105                                area, the cursor will reside at 10, 15, otherwise it will move to                  Video Control Codes             0106                                the right and the down, looking for the first available                            Video Control Codes             0107                                foreground position.                                                               Video Control Codes             0108                                                                                                                   Video Control Codes             0109                                Some of MTB's special purpose control codes include:                               Video Control Codes             0110                                                                                                                   Video Control Codes             0111                                *  (BM) for establishing "blind mode" invisible data entry areas                   Video Control Codes             0112                                                                                                                   Video Control Codes             0113                                *  writing messages to the terminal's control line with (WC)                       Video Control Codes             0114                                                                                                                   Video Control Codes             0115                                *  ringing the terminal's bell with (RB)                                           Video Control Codes             0116                                                                                                                   Video Control Codes             0117                                *  rolling the display up and down with (RU) and (RD)                              Video Control Codes             0118                                   respectively                                                                    Video Control Codes             0119                                                                                                                   Video Control Codes             0120                                *  inserting a line with (LI), and deleting a line with (LD)                       Video Control Codes             0121                                                                                                                   Video Control Codes             0122                                Many of the video control codes can be positioned at a specific                    Video Control Codes             0123                                location on the video screen. There are two ways to do this. The                   Video Control Codes             0124                                first way is to include a positioning statement with the control                   Video Control Codes             0125                                code itself, as follows:                                                           Video Control Codes             0126                                                                                                                   Video Control Codes             0127                                   (control-code),@(column,row)                                                    Video Control Codes             0128                                                                                                                   Video Control Codes             0129                                Notice that a comma separates the parameters in the above                          Video Control Codes             0130                                example.                                                                           Video Control Codes             0131                                                                                                                   Video Control Codes             0132                                The second way to position a control code at a specific screen                     Video Control Codes             0133                                location is to use two controls. The first control code will be                    Video Control Codes             0134                                the screen location, and the second will be the desired control                    Video Control Codes             0135                                code, as follows:                                                                  Video Control Codes             0136                                                                                                                   Video Control Codes             0137                                   @(column,row);(control-code)                                                    Video Control Codes             0138                                                                                                                   Video Control Codes             0139                                Notice that the two controls are separated with a semicolon in                     Video Control Codes             0140                                this example.                                                                      Video Control Codes             0141                                                                                                                   Video Control Codes             0142                                Individual programming style dictates which method may be used,                    Video Control Codes             0143                                so be aware of this when reviewing source code written by another                  Video Control Codes             0144                                programmer.                                                                        Video Control Codes             0145                                                                                                                   Video Control Codes             0146                              Note                                                                                 Video Control Codes             0147                              ====                                                                                 Video Control Codes             0148                                                                                                                   Video Control Codes             0149                                The MTB compiler processes special mnemonics with imbedded                         Video Control Codes             0150                                blanks. For example, the following screen mnemonic instructs the                   Video Control Codes             0151                                workstation to operate in "single key transmit" mode:                              Video Control Codes             0152                                                                                                                   Video Control Codes             0153                                   (SINGLEKEYTRANSMIT)                                                             Video Control Codes             0154                                                                                                                   Video Control Codes             0155                                Using the imbedded blank feature, this mnemonic could also be                      Video Control Codes             0156                                written as:                                                                        Video Control Codes             0157                                                                                                                   Video Control Codes             0158                                   (SINGLE KEY TRANSMIT)                                                           Video Control Codes             0159                                                                                                                   Video Control Codes             0160                                Furthermore, using the upper/lower case feature described above,                   Video Control Codes             0161                                this mnemonic could be written as:                                                 Video Control Codes             0162                                                                                                                   Video Control Codes             0163                                   (Single Key Transmit)                                                           Video Control Codes             0164                                                                                                                   Video Control Codes             0165                                This feature is available in Comet 504 and greater.                                Video Screen Formatting Overview0001                              Video Screen Formatting Overview                                                     Video Screen Formatting Overview0002                              ================================                                                     Video Screen Formatting Overview0003                                                                                                                   Video Screen Formatting Overview0004                                Video screen formatting can be the most challenging step in                        Video Screen Formatting Overview0005                                designing an application program in MTB. To make this process                      Video Screen Formatting Overview0006                                easier, we have included some video screen formatting tips.                        Video Screen Formatting Overview0007                                                                                                                   Video Screen Formatting Overview0008                                Consider the video screen as an 80 column by 24 line (or 64                        Video Screen Formatting Overview0009                                column by 27 line) canvas which can be "painted" with background                   Video Screen Formatting Overview0010                                prompts, data fields to be entered, and special codes to handle                    Video Screen Formatting Overview0011                                data transmission. Each screen coordinate must be accounted for                    Video Screen Formatting Overview0012                                in the formatting process.                                                         Video Screen Formatting Overview0013                                                                                                                   Video Screen Formatting Overview0014                                Video screens are often designed to match paper forms, and the                     Video Screen Formatting Overview0015                                programmer should be aware of some considerations, including                       Video Screen Formatting Overview0016                                natural cursor movement and block data transmission.                               Video Screen Formatting Overview0017                                                                                                                   Video Screen Formatting Overview0018                                From a programming point of view, the easiest type of screen                       Video Screen Formatting Overview0019                                format is the scrolling screen. MTB refers to scrolling screens                    Video Screen Formatting Overview0020                                as "typewriter mode."  In typewriter mode, each new line written                   Video Screen Formatting Overview0021                                to the screen is written on the bottom display line in background                  Video Screen Formatting Overview0022                                characters (pushing the previous top line off the screen). One                     Video Screen Formatting Overview0023                                transmit mark is placed immediately after the prompt, and another                  Video Screen Formatting Overview0024                                is placed at the end of the bottom line. The cursor is placed in                   Video Screen Formatting Overview0025                                the foreground area following the first transmit mark  this is                    Video Screen Formatting Overview0026                                the data entry field.                                                              Video Screen Formatting Overview0027                                                                                                                   Video Screen Formatting Overview0028                                When the user presses the Enter, Tab, or Return key, the cursor                    Video Screen Formatting Overview0029                                jumps over the second transmit mark and the data in the                            Video Screen Formatting Overview0030                                foreground field is transmitted to the host system. Thus,                          Video Screen Formatting Overview0031                                typewriter mode handles only one field at a time.                                  Video Screen Formatting Overview0032                                                                                                                   Video Screen Formatting Overview0033                                The alternative to typewriter mode is "normal mode."  In normal                    Video Screen Formatting Overview0034                                mode, the screen display does not scroll; instead, the cursor                      Video Screen Formatting Overview0035                                moves from field to field starting at the upper left and moving                    Video Screen Formatting Overview0036                                down and towards the right.                                                        Video Screen Formatting Overview0037                                                                                                                   Video Screen Formatting Overview0038                                In normal mode, the programmer must carefully select display                       Video Screen Formatting Overview0039                                characteristics for all areas of the screen. For example, prompts                  Video Screen Formatting Overview0040                                are usually displayed as background characters so the cursor will                  Video Screen Formatting Overview0041                                not move into a prompt area. (Also, only foreground areas can be                   Video Screen Formatting Overview0042                                used for data entry purposes.)                                                     Video Screen Formatting Overview0043                                                                                                                   Video Screen Formatting Overview0044                                The programmer must also place transmit marks around fields to be                  Video Screen Formatting Overview0045                                transmitted to the host system. If a single field is to be                         Video Screen Formatting Overview0046                                transmitted to the receiving program, a transmit mark must be                      Video Screen Formatting Overview0047                                placed before and after the field (usually immediately before and                  Video Screen Formatting Overview0048                                after).                                                                            Video Screen Formatting Overview0049                                                                                                                   Video Screen Formatting Overview0050                                One advantage offered by MTB is its ability to transmit a block                    Video Screen Formatting Overview0051                                of data consisting of more than one field. In this case, a                         Video Screen Formatting Overview0052                                transmit mark must be placed before the first field, and another                   Video Screen Formatting Overview0053                                one must be placed after the last field in the block. When the                     Video Screen Formatting Overview0054                                cursor is positioned between these two marks, the data entered is                  Video Screen Formatting Overview0055                                held in the video device's memory (and does not get transmitted                    Video Screen Formatting Overview0056                                to the host system immediately).                                                   Video Screen Formatting Overview0057                                                                                                                   Video Screen Formatting Overview0058                                This means that the operator can move from field to field (up or                   Video Screen Formatting Overview0059                                down) to edit the data. When the second transmit mark is crossed                   Video Screen Formatting Overview0060                                (a result of the operator pressing the Tab, Return, or Enter key                   Video Screen Formatting Overview0061                                at the last field in the block), the entire block of data is                       Video Screen Formatting Overview0062                                transmitted to the host system filling multiple variables in the                   Video Screen Formatting Overview0063                                program being run.                                                                 Video Screen Formatting Overview0064                                                                                                                   Video Screen Formatting Overview0065                                The following program segment demonstrates this technique:                         Video Screen Formatting Overview0066                                                                                                                   Video Screen Formatting Overview0067                                1000 FORMAT A$;B$;C$;D$;E$;F$                                                      Video Screen Formatting Overview0068                                .                                                                                  Video Screen Formatting Overview0069                                .                                                                                  Video Screen Formatting Overview0070                                .                                                                                  Video Screen Formatting Overview0071                                <INPUT,#HELPMT4> (0,1000)                                                          Video Screen Formatting Overview0072                                                                                                                   Video Screen Formatting Overview0073                                This example assumes that the screen has been formatted to                         Video Screen Formatting Overview0074                                receive six string fields  the prompts and intervening lines                      Video Screen Formatting Overview0075                                must be background characters, the data entry areas must be                        Video Screen Formatting Overview0076                                foreground, and there must be a transmit mark on the screen                        Video Screen Formatting Overview0077                                before the first data entry area and another transmit mark                         Video Screen Formatting Overview0078                                following the sixth data entry area (as shown in the following                     Video Screen Formatting Overview0079                                diagram).                                                                          Video Screen Formatting Overview0080                                                                                                                   Video Screen Formatting Overview0081                                   PROMPT 1: TM ______________________                                             Video Screen Formatting Overview0082                                                                                                                   Video Screen Formatting Overview0083                                   PROMPT 2: _______________________                                               Video Screen Formatting Overview0084                                                                                                                   Video Screen Formatting Overview0085                                   PROMPT 3: _____________________________                                         Video Screen Formatting Overview0086                                                                                                                   Video Screen Formatting Overview0087                                   PROMPT 4: _________________                                                     Video Screen Formatting Overview0088                                                                                                                   Video Screen Formatting Overview0089                                   PROMPT 5: _________________________________                                     Video Screen Formatting Overview0090                                                                                                                   Video Screen Formatting Overview0091                                   PROMPT 6: _______  TM                                                           Video Screen Formatting Overview0092                                                                                                                   Video Screen Formatting Overview0093                                When the program reaches the INPUT statement, it will remain                       Video Screen Formatting Overview0094                                there until the operator fills in the six data entry areas and                     Video Screen Formatting Overview0095                                presses the Tab, Return, or Enter key at the sixth field (causing                  Video Screen Formatting Overview0096                                the cursor to jump over the second transmit mark). When this                       Video Screen Formatting Overview0097                                happens, the data from the video device will be transmitted to                     Video Screen Formatting Overview0098                                the host system and will be placed in the variables in the FORMAT                  Video Screen Formatting Overview0099                                statement (in this case, A$, B$, C$, D$, E$, and F$).                              Video Screen Formatting Overview0100                                                                                                                   Video Screen Formatting Overview0101                                Natural cursor movement is an important consideration when                         Video Screen Formatting Overview0102                                creating screen displays. The programmer should design a screen                    Video Screen Formatting Overview0103                                display with the operator's actions in mind. Thus, the initial                     Video Screen Formatting Overview0104                                data entry fields are usually placed at the top of the screen,                     Video Screen Formatting Overview0105                                and others are placed below in some logical sequence.                              Video Screen Formatting Overview0106                                                                                                                   Video Screen Formatting Overview0107                                The cursor moves to the right and down depending on the key                        Video Screen Formatting Overview0108                                pressed by the operator. The Tab key moves the cursor to the                       Video Screen Formatting Overview0109                                right first, then down. This means that multiple data entry                        Video Screen Formatting Overview0110                                fields may be placed on the same line of the screen  the                          Video Screen Formatting Overview0111                                operator moves by pressing the Tab key.                                            Video Screen Formatting Overview0112                                                                                                                   Video Screen Formatting Overview0113                                The Return key and Enter key move the cursor down without moving                   Video Screen Formatting Overview0114                                it to the right first. This means that multiple data entry fields                  Video Screen Formatting Overview0115                                on the same line will be skipped if the operator presses the                       Video Screen Formatting Overview0116                                Return or Enter key.                                                               Video Screen Formatting Overview0117                                                                                                                   Video Screen Formatting Overview0118                                The Transmit key or F10 function key causes the cursor to                          Video Screen Formatting Overview0119                                immediately jump ahead to the next transmit mark regardless of                     Video Screen Formatting Overview0120                                where the cursor is located when the key is pressed. This means                    Video Screen Formatting Overview0121                                that the operator can abort a block data entry session early by                    Video Screen Formatting Overview0122                                pressing the Transmit or F10 function key.                                         Video Screen Formatting Overview0123                                                                                                                   Video Screen Formatting Overview0124                                When the cursor enters a data entry field, it normally appears at                  Video Screen Formatting Overview0125                                the left hand side of the field. The field accepts all keys from                   Video Screen Formatting Overview0126                                the keyboard, including the alphabetic keys, numeric keys, and                     Video Screen Formatting Overview0127                                special characters. For some data entry fields, this may not be                    Video Screen Formatting Overview0128                                acceptable, so the (RJ) control code may be used to establish a                    Video Screen Formatting Overview0129                                right justified field.                                                             Video Screen Formatting Overview0130                                                                                                                   Video Screen Formatting Overview0131                                A right justified field accepts only numeric values and a minus                    Video Screen Formatting Overview0132                                sign (for negative numbers)  all other data is prevented from                     Video Screen Formatting Overview0133                                being entered into the field. A field becomes right justified                      Video Screen Formatting Overview0134                                when the (RJ) control is placed immediately before the field on                    Video Screen Formatting Overview0135                                the screen display. Each field to be right justified must contain                  Video Screen Formatting Overview0136                                its own (RJ) mark.                                                                 Video Screen Formatting Overview0137                                                                                                                   Video Screen Formatting Overview0138                                This documentation contains detailed descriptions and programming                  Video Screen Formatting Overview0139                                examples of all the control codes recognized by MTB. Note: There                   Video Screen Formatting Overview0140                                are additional hexadecimal formatting controls recognized by                       Video Screen Formatting Overview0141                                various devices that may be connected to a Comet system. These                     Video Screen Formatting Overview0142                                hex controls are described in the documentation accompanying each                  Video Screen Formatting Overview0143                                product and are not covered herein.                                                additional edit mask examples   0001  Edit mask examples          Additional edit mask examples                                                        additional edit mask examples   0002  Edit mask examples          =============================                                                        additional edit mask examples   0003  Edit mask examples                                                                                               additional edit mask examples   0004  Edit mask examples            Edit mask         Value          Displayed as                                      additional edit mask examples   0005  Edit mask examples            =============================================                                      additional edit mask examples   0006  Edit mask examples            ######.##-              .01              1                                         additional edit mask examples   0007  Edit mask examples                                    .12             12                                         additional edit mask examples   0008  Edit mask examples                                   1.23           1.23                                         additional edit mask examples   0009  Edit mask examples                                  12.34          12.34                                         additional edit mask examples   0010  Edit mask examples                                 123.45         123.45                                         additional edit mask examples   0011  Edit mask examples                                1234.56        1234.56                                         additional edit mask examples   0012  Edit mask examples                               12345.67       12345.67                                         additional edit mask examples   0013  Edit mask examples                              123456.78      123456.78                                         additional edit mask examples   0014  Edit mask examples                              123456.78-     123456.78-                                        additional edit mask examples   0015  Edit mask examples                                                                                               additional edit mask examples   0016  Edit mask examples            #####0.00-              .01            .01                                         additional edit mask examples   0017  Edit mask examples                                    .12            .12                                         additional edit mask examples   0018  Edit mask examples                                   1.23           1.23                                         additional edit mask examples   0019  Edit mask examples                                  12.34          12.34                                         additional edit mask examples   0020  Edit mask examples                                 123.45         123.45                                         additional edit mask examples   0021  Edit mask examples                                1234.56        1234.56                                         additional edit mask examples   0022  Edit mask examples                               12345.67       12345.67                                         additional edit mask examples   0023  Edit mask examples                              123456.78      123456.78                                         additional edit mask examples   0024  Edit mask examples                              123456.78-     123456.78-                                        additional edit mask examples   0025  Edit mask examples                                                                                               additional edit mask examples   0026  Edit mask examples            ###,##0.00-             .01             .01                                        additional edit mask examples   0027  Edit mask examples                                    .12             .12                                        additional edit mask examples   0028  Edit mask examples                                   1.23            1.23                                        additional edit mask examples   0029  Edit mask examples                                  12.34           12.34                                        additional edit mask examples   0030  Edit mask examples                                 123.45          123.45                                        additional edit mask examples   0031  Edit mask examples                                1234.56        1,234.56                                        additional edit mask examples   0032  Edit mask examples                               12345.67       12,345.67                                        additional edit mask examples   0033  Edit mask examples                              123456.78      123,456.78                                        additional edit mask examples   0034  Edit mask examples                              123456.78-     123,456.78-                                       additional edit mask examples   0035  Edit mask examples                                                                                               additional edit mask examples   0036  Edit mask examples            000000.00-              .01      000000.01                                         additional edit mask examples   0037  Edit mask examples                                    .12      000000.12                                         additional edit mask examples   0038  Edit mask examples                                   1.23      000001.23                                         additional edit mask examples   0039  Edit mask examples                                  12.34      000012.34                                         additional edit mask examples   0040  Edit mask examples                                 123.45      000123.45                                         additional edit mask examples   0041  Edit mask examples                                1234.56      001234.56                                         additional edit mask examples   0042  Edit mask examples                               12345.67      012345.67                                         additional edit mask examples   0043  Edit mask examples                              123456.78      123456.78                                         additional edit mask examples   0044  Edit mask examples                              123456.78-     123456.78-                                        additional edit mask examples   0045  Edit mask examples                                                                                               additional edit mask examples   0046  Edit mask examples            *#####.##-              .01      ********1                                         additional edit mask examples   0047  Edit mask examples                                    .12      *******12                                         additional edit mask examples   0048  Edit mask examples                                   1.23      *****1.23                                         additional edit mask examples   0049  Edit mask examples                                  12.34      ****12.34                                         additional edit mask examples   0050  Edit mask examples                                 123.45      ***123.45                                         additional edit mask examples   0051  Edit mask examples                                1234.56      **1234.56                                         additional edit mask examples   0052  Edit mask examples                               12345.67      *12345.67                                         additional edit mask examples   0053  Edit mask examples                              123456.78      123456.78                                         additional edit mask examples   0054  Edit mask examples                              123456.78-     123456.78-                                        additional edit mask examples   0055  Edit mask examples                                                                                               additional edit mask examples   0056  Edit mask examples            *####0.00-              .01      ******.01                                         additional edit mask examples   0057  Edit mask examples                                    .12      ******.12                                         additional edit mask examples   0058  Edit mask examples                                   1.23      *****1.23                                         additional edit mask examples   0059  Edit mask examples                                  12.34      ****12.34                                         additional edit mask examples   0060  Edit mask examples                                 123.45      ***123.45                                         additional edit mask examples   0061  Edit mask examples                                1234.56      **1234.56                                         additional edit mask examples   0062  Edit mask examples                               12345.67      *12345.67                                         additional edit mask examples   0063  Edit mask examples                              123456.78      123456.78                                         additional edit mask examples   0064  Edit mask examples                              123456.78-     123456.78-                                        additional edit mask examples   0065  Edit mask examples                                                                                               additional edit mask examples   0066  Edit mask examples            *##,##0.00-             .01      *******.01                                        additional edit mask examples   0067  Edit mask examples                                    .12      *******.12                                        additional edit mask examples   0068  Edit mask examples                                   1.23      ******1.23                                        additional edit mask examples   0069  Edit mask examples                                  12.34      *****12.34                                        additional edit mask examples   0070  Edit mask examples                                 123.45      ****123.45                                        additional edit mask examples   0071  Edit mask examples                                1234.56      **1,234.56                                        additional edit mask examples   0072  Edit mask examples                               12345.67      *12,345.67                                        additional edit mask examples   0073  Edit mask examples                              123456.78      123,456.78                                        additional edit mask examples   0074  Edit mask examples                              123456.78-     123,456.78-                                       additional edit mask examples   0075  Edit mask examples                                                                                               additional edit mask examples   0076  Edit mask examples            *##.##0,00-             .01      *******,01     (European format)                  additional edit mask examples   0077  Edit mask examples                                    .12      *******,12                                        additional edit mask examples   0078  Edit mask examples                                   1.23      ******1,23                                        additional edit mask examples   0079  Edit mask examples                                  12.34      *****12,34                                        additional edit mask examples   0080  Edit mask examples                                 123.45      ****123,45                                        additional edit mask examples   0081  Edit mask examples                                1234.56      **1.234,56                                        additional edit mask examples   0082  Edit mask examples                               12345.67      *12.345,67                                        additional edit mask examples   0083  Edit mask examples                              123456.78      123.456,78                                        additional edit mask examples   0084  Edit mask examples                              123456.78-     123.456,78-                                       additional edit mask examples   0085  Edit mask examples                                                                                               additional edit mask examples   0086  Edit mask examples            ###,##0.00+             .01             .01+                                       additional edit mask examples   0087  Edit mask examples                                    .12             .12+                                       additional edit mask examples   0088  Edit mask examples                                   1.23            1.23+                                       additional edit mask examples   0089  Edit mask examples                                   1.23-           1.23-                                       additional edit mask examples   0090  Edit mask examples                                  12.34           12.34+                                       additional edit mask examples   0091  Edit mask examples                                 123.45          123.45+                                       additional edit mask examples   0092  Edit mask examples                                1234.56        1,234.56+                                       additional edit mask examples   0093  Edit mask examples                               12345.67       12,345.67+                                       additional edit mask examples   0094  Edit mask examples                              123456.78      123,456.78+                                       additional edit mask examples   0095  Edit mask examples                              123456.78-     123,456.78-                                       additional edit mask examples   0096  Edit mask examples                                                                                               additional edit mask examples   0097  Edit mask examples            ###,##0.00CR            .01             .01                                        additional edit mask examples   0098  Edit mask examples                                    .12             .12                                        additional edit mask examples   0099  Edit mask examples                                   1.23            1.23                                        additional edit mask examples   0100  Edit mask examples                                   1.23-           1.23CR                                      additional edit mask examples   0101  Edit mask examples                                  12.34           12.34                                        additional edit mask examples   0102  Edit mask examples                                 123.45          123.45                                        additional edit mask examples   0103  Edit mask examples                                1234.56        1,234.56                                        additional edit mask examples   0104  Edit mask examples                               12345.67       12,345.67                                        additional edit mask examples   0105  Edit mask examples                              123456.78      123,456.78                                        additional edit mask examples   0106  Edit mask examples                              123456.78-     123,456.78CR                                      additional edit mask examples   0107  Edit mask examples                                                                                               additional edit mask examples   0108  Edit mask examples            ###,##0.00DR            .01             .01DR                                      additional edit mask examples   0109  Edit mask examples                                    .12             .12DR                                      additional edit mask examples   0110  Edit mask examples                                   1.23            1.23DR                                      additional edit mask examples   0111  Edit mask examples                                   1.23-           1.23CR                                      additional edit mask examples   0112  Edit mask examples                                  12.34           12.34DR                                      additional edit mask examples   0113  Edit mask examples                                 123.45          123.45DR                                      additional edit mask examples   0114  Edit mask examples                                1234.56        1,234.56DR                                      additional edit mask examples   0115  Edit mask examples                               12345.67       12,345.67DR                                      additional edit mask examples   0116  Edit mask examples                              123456.78      123,456.78DR                                      additional edit mask examples   0117  Edit mask examples                              123456.78-     123,456.78CR                                      additional edit mask examples   0118  Edit mask examples                                                                                               additional edit mask examples   0119  Edit mask examples            (###,##0.00)            .01              .01                                       additional edit mask examples   0120  Edit mask examples                                    .12              .12                                       additional edit mask examples   0121  Edit mask examples                                   1.23             1.23                                       additional edit mask examples   0122  Edit mask examples                                   1.23-           (1.23)                                      additional edit mask examples   0123  Edit mask examples                                  12.34            12.34                                       additional edit mask examples   0124  Edit mask examples                                 123.45           123.45                                       additional edit mask examples   0125  Edit mask examples                                1234.56         1,234.56                                       additional edit mask examples   0126  Edit mask examples                               12345.67        12,345.67                                       additional edit mask examples   0127  Edit mask examples                              123456.78       123,456.78                                       additional edit mask examples   0128  Edit mask examples                              123456.78-     (123,456.78)                                      edit-mask                       0001                              Edit mask                                                                            edit-mask                       0002                              =========                                                                            edit-mask                       0003                                                                                                                   edit-mask                       0004                                The edit-mask parameter in a <FORMAT> statement is used for                        edit-mask                       0005                                formatted output of numeric fields. The edit mask itself may be a                  edit-mask                       0006                                string constant or variable. If it is a string constant, it must                   edit-mask                       0007                                be enclosed in quotation marks. If it is a string variable, its                    edit-mask                       0008                                value must be set in the Procedure Division of the program.                        edit-mask                       0009                                                                                                                   edit-mask                       0010                                Edit masks determine how a numeric field will be formatted during                  edit-mask                       0011                                output. If no edit mask is specified, MTB supplies a default edit                  edit-mask                       0012                                mask: leading zeros are suppressed, a decimal point is printed                     edit-mask                       0013                                along with all leading and trailing zeros to the right of the                      edit-mask                       0014                                decimal point, and a trailing minus sign is printed for negative                   edit-mask                       0015                                values.                                                                            edit-mask                       0016                                                                                                                   edit-mask                       0017                                User-supplied edit masks may contain three parts: a leading                        edit-mask                       0018                                character, the body characters, and trailing characters.                           edit-mask                       0019                                                                                                                   edit-mask                       0020                                The optional leading character, actually a floating lead                           edit-mask                       0021                                character, may be a dollar sign or left parentheses:                               edit-mask                       0022                                                                                                                   edit-mask                       0023                                Leading                                                                            edit-mask                       0024                                Character    Purpose                                                               edit-mask                       0025                                =================================================================                  edit-mask                       0026                                   $         Prints a dollar sign immediately before the first                     edit-mask                       0027                                             non-zero digit in the numeric field. The dollar sign                  edit-mask                       0028                                             floats from left to right, according to the location                  edit-mask                       0029                                             of the first non-zero digit.                                          edit-mask                       0030                                                                                                                   edit-mask                       0031                                   (         Prints left parentheses immediately before the first                  edit-mask                       0032                                             non-zero digit in the numeric field only if the                       edit-mask                       0033                                             field contains a negative value. The left                             edit-mask                       0034                                             parenthesis must be paired with a matching right                      edit-mask                       0035                                             parenthesis as the trailing character.                                edit-mask                       0036                                                                                                                   edit-mask                       0037                                The body characters of an edit mask specify the digits, decimal                    edit-mask                       0038                                point, and commas in the numeric value. The following characters                   edit-mask                       0039                                may be used:                                                                       edit-mask                       0040                                                                                                                   edit-mask                       0041                                Body                                                                               edit-mask                       0042                                Characters   Purpose                                                               edit-mask                       0043                                =================================================================                  edit-mask                       0044                                   0         Represents a single digit of the numeric field.                       edit-mask                       0045                                             Prints zeros if the digit is zero-valued (including                   edit-mask                       0046                                             leading zeros), or digits 1 through 9 according to                    edit-mask                       0047                                             the value of the numeric field.                                       edit-mask                       0048                                                                                                                   edit-mask                       0049                                   #         Also represents a single digit of the numeric field.                  edit-mask                       0050                                             Prints digits 0 through 9 according to the value of                   edit-mask                       0051                                             the numeric field, but DOES NOT print leading zeros.                  edit-mask                       0052                                                                                                                   edit-mask                       0053                                   *         Represents a single digit of the numeric field.                       edit-mask                       0054                                             Prints an asterisk in that position if the value of                   edit-mask                       0055                                             that position is zero. Used for asterisk fill of                      edit-mask                       0056                                             leading zeros.                                                        edit-mask                       0057                                                                                                                   edit-mask                       0058                                   .         Separates integer portion of the numeric field from                   edit-mask                       0059                                             the decimal portion. Prints a decimal point in that                   edit-mask                       0060                                             position. Note: The decimal point cannot be used as                   edit-mask                       0061                                             the last character in an edit mask.                                   edit-mask                       0062                                                                                                                   edit-mask                       0063                                   ,         Separates groups of digits on the left side of the                    edit-mask                       0064                                             decimal point. Prints a comma in that position. Will                  edit-mask                       0065                                             not print if leading characters are zero.                             edit-mask                       0066                                                                                                                   edit-mask                       0067                                Two basic rules determine the operation of edit masks:                             edit-mask                       0068                                                                                                                   edit-mask                       0069                                1. The first "digit character" in the body of the edit mask  0,                   edit-mask                       0070                                   #, or *  is used as the "fill character."                                      edit-mask                       0071                                                                                                                   edit-mask                       0072                                   The fill character fills from the left of the numeric field to                  edit-mask                       0073                                   the first non-zero position.                                                    edit-mask                       0074                                                                                                                   edit-mask                       0075                                   If the edit mask is a string variable, the fill character may                   edit-mask                       0076                                   be virtually any character (other than a comma or decimal                       edit-mask                       0077                                   point).                                                                         edit-mask                       0078                                                                                                                   edit-mask                       0079                                2. The significant starting position is determined by either:                      edit-mask                       0080                                                                                                                   edit-mask                       0081                                   a.   the first non-zero digit in the data (from the left), or                   edit-mask                       0082                                                                                                                   edit-mask                       0083                                   b.   the first position after the first 0 in the edit mask.                     edit-mask                       0084                                                                                                                   edit-mask                       0085                                Edit masks must contain a trailing character. The following                        edit-mask                       0086                                options are available:                                                             edit-mask                       0087                                                                                                                   edit-mask                       0088                                Trailing                                                                           edit-mask                       0089                                Character    Purpose                                                               edit-mask                       0090                                =================================================================                  edit-mask                       0091                                   +         Prints a plus sign after positive numbers, or a                       edit-mask                       0092                                             minus sign after negative numbers. Always prints a                    edit-mask                       0093                                             sign.                                                                 edit-mask                       0094                                                                                                                   edit-mask                       0095                                   -         Prints a trailing blank after positive numbers, or a                  edit-mask                       0096                                             minus sign after negative numbers.                                    edit-mask                       0097                                                                                                                   edit-mask                       0098                                   DR        Prints DR after positive numbers, or CR after                         edit-mask                       0099                                             negative numbers. Indicates "debit" or "credit."                      edit-mask                       0100                                                                                                                   edit-mask                       0101                                   CR        Prints two blanks after positive numbers, or CR                       edit-mask                       0102                                             after negative numbers.                                               edit-mask                       0103                                                                                                                   edit-mask                       0104                                   )         Prints a right parenthesis after negative numbers, a                  edit-mask                       0105                                             blank space after positive numbers. Must be paired                    edit-mask                       0106                                             with a left parenthesis leading character.                            edit-mask                       0107                                                                                                                   edit-mask                       0108                              Examples:                                                                            edit-mask                       0109                                                                                                                   edit-mask                       0110                                Also see <additional edit mask examples>.                                          edit-mask                       0111                                                                                                                   edit-mask                       0112                                1. #,##0.00-                                                                       edit-mask                       0113                                                                                                                   edit-mask                       0114                                   a.   no leading character                                                       edit-mask                       0115                                   b.   body characters for a 6.2 number                                           edit-mask                       0116                                   c.   suppress leading zeros (and comma)                                         edit-mask                       0117                                   d.   start printing leading zeros at the decimal point                          edit-mask                       0118                                   e.   print decimal point                                                        edit-mask                       0119                                   f.   print two digits after decimal point                                       edit-mask                       0120                                   g.   print trailing minus sign on negative numbers                              edit-mask                       0121                                                                                                                   edit-mask                       0122                                2. $*##,##0.00-                                                                    edit-mask                       0123                                                                                                                   edit-mask                       0124                                   a.   floating dollar sign                                                       edit-mask                       0125                                   b.   asterisk fill                                                              edit-mask                       0126                                   c.   start printing zeros at the decimal point                                  edit-mask                       0127                                   d.   print decimal point                                                        edit-mask                       0128                                   e.   print two digits after the decimal point                                   edit-mask                       0129                                   f.   print trailing minus sign on negative numbers                              edit-mask                       0130                                                                                                                   edit-mask                       0131                                3. (###,##0.00)                                                                    edit-mask                       0132                                                                                                                   edit-mask                       0133                                   a.   print parentheses around negative values                                   edit-mask                       0134                                   b.   suppress leading zeros                                                     edit-mask                       0135                                   c.   start printing zeros at the decimal point                                  edit-mask                       0136                                   d.   print decimal point                                                        edit-mask                       0137                                   e.   print two digits after the decimal point                                   edit-mask                       0138                                                                                                                   edit-mask                       0139                                Edit masks may also contain a directive to print blanks if the                     edit-mask                       0140                                numeric value is zero. The directive is the (BZ) modifier -- it                    edit-mask                       0141                                is placed after an edit mask, as follows:                                          edit-mask                       0142                                                                                                                   edit-mask                       0143                                   edit-mask,(BZ)                                                                  edit-mask                       0144                                                                                                                   edit-mask                       0145                                Here is a example of a complete format item specification:                         edit-mask                       0146                                                                                                                   edit-mask                       0147                                SAMPLE: FORMAT CRLIMIT,9,@(12,20),"$#,##0.00-",(BZ)                                edit-mask                       0148                                        .                                                                          edit-mask                       0149                                        .                                                                          edit-mask                       0150                                        .                                                                          edit-mask                       0151                                        <PRINT,#HELPMT4> (0,SAMPLE)                                                edit-mask                       0152                                                                                                                   edit-mask                       0153                                This sample prints the CRLIMIT field, specifies the format length                  edit-mask                       0154                                as 9 characters (the size of the edit mask), positions the field                   edit-mask                       0155                                at screen column 12, row 20, specifies an edit mask, and prints                    edit-mask                       0156                                blanks if the field contain a zero value.                                          edit-mask                       0157                                                                                                                   edit-mask                       0158                                The (LM) mnemonic places a leading minus sign on a negatively                      edit-mask                       0159                                valued numeric field. This feature is particularly useful when                     edit-mask                       0160                                writing numeric fields to a data file that will subsequently be                    edit-mask                       0161                                imported into a spreadsheet program, data base program, or other                   edit-mask                       0162                                DOS program where a leading minus sign is expected.                                edit-mask                       0163                                                                                                                   edit-mask                       0164                                The (LM) mnemonic appears as the final parameter in a FORMAT                       edit-mask                       0165                                statement for a specific numeric field. This feature is intended                   edit-mask                       0166                                for unformatted numeric fields only (i.e., fields without an edit                  edit-mask                       0167                                mask).                                                                             edit-mask                       0168                                                                                                                   edit-mask                       0169                                Note: The (LM) mnemonic and (BZ) mnemonic may not be used on the                   edit-mask                       0170                                same field.                                                                        edit-mask                       0171                                                                                                                   edit-mask                       0172                                FORMAT statement syntax:                                                           edit-mask                       0173                                                                                                                   edit-mask                       0174                                label FORMAT numeric-field[,length-override][,@(position)],(LM)                    edit-mask                       0175                                                                                                                   edit-mask                       0176                                Example:                                                                           edit-mask                       0177                                                                                                                   edit-mask                       0178                                   9999 FORMAT BALANCE,(LM)                                                        edit-mask                       0179                                        .                                                                          edit-mask                       0180                                        .                                                                          edit-mask                       0181                                        .                                                                          edit-mask                       0182                                        OPEN (2) "OUTPUT",DIR="DSK"                                                edit-mask                       0183                                        WRITE (2,9999)                                                             edit-mask                       0184                                                                                                                   edit-mask                       0185                                This sample writes the BALANCE field to a data file named OUTPUT,                  edit-mask                       0186                                including leading minus signs on negatively valued items.                          format-item                     0001                              Format item                                                                          format-item                     0002                              ===========                                                                          format-item                     0003                                                                                                                   format-item                     0004                                A format-item is a string or numeric field (constant or                            format-item                     0005                                variable), or device control code in a <FORMAT> statement.                         format-item                     0006                                                                                                                   format-item                     0007                              Example 1:                                                                           format-item                     0008                                                                                                                   format-item                     0009                                1000 FORMAT <(CS)>                                                                 format-item                     0010                                .                                                                                  format-item                     0011                                <PRINT,#HELPMT4> (0,1000)                                                          format-item                     0012                                                                                                                   format-item                     0013                                In this example, the FORMAT statement contains one device control                  format-item                     0014                                code, the (CS) mnemonic which means "clear screen." This FORMAT                    format-item                     0015                                statement is invoked via the PRINT statement.                                      format-item                     0016                                                                                                                   format-item                     0017                                Note: The above example could also be written without a FORMAT                     format-item                     0018                                statement, as follows:                                                             format-item                     0019                                                                                                                   format-item                     0020                                PRINT (0) (CS)                                                                     format-item                     0021                                                                                                                   format-item                     0022                              Example 2:                                                                           format-item                     0023                                                                                                                   format-item                     0024                                LABEL: FORMAT CUSTNUM$                                                             format-item                     0025                                .                                                                                  format-item                     0026                                <INPUT,#HELPMT4> (0,LABEL)                                                         format-item                     0027                                                                                                                   format-item                     0028                                In this example, the FORMAT statement contains a string variable                   format-item                     0029                                named CUSTNUM$. This FORMAT statement is invoked via the INPUT                     format-item                     0030                                statement.                                                                         format-item                     0031                                                                                                                   format-item                     0032                                Note: The above example could also be written without a FORMAT                     format-item                     0033                                statement, as follows:                                                             format-item                     0034                                                                                                                   format-item                     0035                                INPUT (0) CUSTNUM$                                                                 format-item                     0036                                                                                                                   format-item                     0037                              Example 3:                                                                           format-item                     0038                                                                                                                   format-item                     0039                                LABEL: FORMAT CUSTNUM$;NAME$;ADDRESS$;CITY$;STATE$;ZIP$;PHONE$                     format-item                     0040                                .                                                                                  format-item                     0041                                INPUT (0,LABEL)                                                                    format-item                     0042                                                                                                                   format-item                     0043                                In this example, the FORMAT statement contains multiple string                     format-item                     0044                                variables. This format statement is invoked via the INPUT                          format-item                     0045                                statement.                                                                         format-item                     0046                                                                                                                   format-item                     0047                                This example presumes that the video screen has been formatted                     format-item                     0048                                prior to the INPUT statement, with the screen format including                     format-item                     0049                                the necessary foreground and background areas, transmit marks,                     format-item                     0050                                etc.                                                                               length-override                 0001                              Length override                                                                      length-override                 0002                              ===============                                                                      length-override                 0003                                                                                                                   length-override                 0004                                The length-override parameter (optional) in a <FORMAT> statement                   length-override                 0005                                is the desired formatted length of the format-object, regardless                   length-override                 0006                                of the defined length of the field. This parameter may be a                        length-override                 0007                                numeric constant or variable (expressions are not allowed).                        length-override                 0008                                                                                                                   length-override                 0009                                When an array is specified as the format-object, this parameter                    length-override                 0010                                takes on a slightly different form, as follows:                                    length-override                 0011                                                                                                                   length-override                 0012                                        repeat-factor * length-override                                            length-override                 0013                                                                                                                   length-override                 0014                                The repeat-factor is the number of successive elements in the                      length-override                 0015                                array; the length-override is the length of each element from the                  length-override                 0016                                array.                                                                             system variables                0001  Comet system variables      Comet system variables                                                               system variables                0002  Comet system variables      ======================                                                               system variables                0003  Comet system variables                                                                                           system variables                0004  Comet system variables        Comet includes a number of system variables that may be used in                    system variables                0005  Comet system variables        an MTB program without being defined in the Data Division. Take                    system variables                0006  Comet system variables        care to not define your own variables with any of the following                    system variables                0007  Comet system variables        names:                                                                             system variables                0008  Comet system variables                                                                                           system variables                0009  Comet system variables           <CURPOS$>      <HELPKEY$>     <PRIORITY$>                                       system variables                0010  Comet system variables           <DATE$>        <ITERM$>       <RUNSTATE>                                        system variables                0011  Comet system variables           <DATE>         <LONGYEAR$>    <SYSPART$>                                        system variables                0012  Comet system variables           <DAY$>         <LONGYEAR>     <TERM$>                                           system variables                0013  Comet system variables           <ENTERLEVEL>   <MESSAGE$>     <TIME$>                                           system variables                0014  Comet system variables           <EXCP>         <PARTITION$>   <VERSION$>                                        (Auto TAB Off)                                                      <(SL=n)>     Skip n lines                                                          (Auto TAB On)                                                       b. PRINT (0) (Auto TAB Off)                                                        (BF)                                  Blank fill                    b. PRINT (0) (Auto TAB On)                                                         (BIOS Mouse On)                                                     b. PRINT (0) (Window Title Background="Title line",5)                              (BM)                                  Blind Mode                    b. PRINT (0) (Blink)                                                               (Blink)                                                             10 to the end of the line.                                                         (Bright)                                                            screen as it is entered.                                                           (CF)                                  Clear Foreground              b. PRINT (0) (Bright)                                                              (CFLD)                                Clear Field                   This example shows how to clear all foreground screen positions.                   (CH)                                  Cursor Home                   to foreground blanks (if not, the control code will do nothing).                   (CPL132)                              132 Characters Per Line       b. PRINT (0) (Close Icon)                                                          (CPL64)                               64 Characters Per Line        b. PRINT (0) (CPL132)                                                              (CPL80)                               80 Characters Per Line        This example shows how to set 64 character-per-line mode.                          (CR)                                  Cursor Return                 This example shows how to set 80 character-per-line mode.                          (CR)-printer                          Carriage Return               (FAX Write Config="C:\FAX\FAXFILE.DAT")                                            (CS)                                  Clear Screen                  corner).                                                                           (Change Color)                                                      This example shows how to move the cursor to the home position.                    (Change Colors)                                                     b. PRINT (0) (Change Color="@07@")                                                 (Check Box Off)                                                     b. Print (0) (Change colors="@0F@","@A0@","@00@","@C0@","@0F@")                    (Check Box On)                                                      b. PRINT (0) (Check Box Off)                                                       (Close Icon)                                                        b. PRINT (0) (Check Box On)                                                        (Create Window)                                                     This example shows how to issue the cursor return control code.                    (DE)                                  Default Characters Per Line   This example shows how to clear the screen.                                        (Delete Window)                                                     per line.                                                                          (Draw box)                                                          b. PRINT (0) (Delete Window)                                                       (EN)                                  Enter Normal Mode             b. PRINT (0) (Draw box=2,3,5,10)                                                   (ET)                                  Enter Typewriter Mode         column 10, row 0.                                                                  (Enhanced Characters Off)                                              PRINT (0,1000)                                                                  (Enhanced Characters On)                                            b. PRINT (0) (BIOS Mouse On)                                                       (Enhanced Mouse On)                                                    PRINT (0,1000)                                                                  (FAX Config File)                                                   b. PRINT (0) (Show Mouse Cursor)                                                   (FAX Cover Page)                                                    PRINT (1) (FAX Config File="C:\FAX\FAXFILE.DAT")                                   (FAX Cover Text)                                                                                                                                       (FAX Delete Job)                                                    PRINT (1) (FAX Delete)                                                             (FAX Delete On Send)                                                PRINT (1) (FAX Delete Job=HANDLE$)                                                 (FAX Delete)                                                        PRINT (1) (FAX Cover Text="Line 4...")                                             (FAX Fine Resolution)                                               PRINT (1) (FAX Delete On Send)                                                     (FAX From)                                                          PRINT (1) (FAX Fine Resolution)                                                    (FAX Get Job Status)                                                PRINT (1) (FAX From="Your name here")                                              (FAX Logo File)                                                     PRINT (1) (FAX Get Job Status=HANDLE$)                                             (FAX No Cover Page)                                                 PRINT (1) (FAX Logo File="C:\GRAPHICS\LOGO.PCX")                                   (FAX No Delete)                                                     PRINT (1) (FAX No Cover Page)                                                      (FAX No Page Headers)                                               PRINT (1) (FAX No Delete)                                                          (FAX Normal Resolution)                                             PRINT (1) (FAX No Page Headers)                                                    (FAX PCX File)                                                      PRINT (1) (FAX Page Headers)                                                       (FAX Page Headers)                                                  PRINT (1) (FAX Normal Resolution)                                                  (FAX Phone)                                                         PRINT (1) (FAX PCX File="C:\GRAPHICS\DRAWING.PCX")                                 (FAX Send Date)                                                     PRINT (1) (FAX Phone="1-999-555-1212")                                             (FAX Send Time)                                                     PRINT (1) (FAX Send Date="12/31/99")                                               (FAX Submit Job)                                                    PRINT (1) (FAX Send Time="11:30")                                                  (FAX Text File)                                                     PRINT (1) (FAX Submit Job)                                                         (FAX To)                                                            PRINT (1) (FAX Text File="C:\FINANCE\REPORT.TXT")                                  (FAX Write Config)                                                  PRINT (1) (FAX To="Recepient's name here")                                         (FF)                                  Form Feed                     then prints a subheading on the next line.                                         (FT)                                  Force Transmit                marks are handled automatically.                                                   (Force Close)                                                          PRINT (1) (TR)                                                                  (Force Logout)                                                      (Force Close)                                                                      (Full Scan Codes Passed)                                            the transmission of a value for the ANSWER$ variable.                              (Get Connection Info)                                               (Force Logout)                                                                     (Get Extract Info)                                                  (Get Connection Info)                                                              (Get Server Time)                                                   (Get Extract Info)                                                                 (Hide Cursor)                                                       b. PRINT (0) (Full Scan Codes Passed)                                              (Hide Mouse Cursor)                                                 b. PRINT (0) (Enhanced Mouse On)                                                   (Insert Off)                                                        b. PRINT (0) (Hide Cursor)                                                         (Insert On)                                                         b. PRINT (0) (Insert Off)                                                          (Invoke HELP)                                                       b. PRINT (0) (Insert Off)                                                          (LD)                                  Line Delete                                               ! statement                                            (LF)                                  Line Feed                                                                                                        (LI)                                  Line Insert                   display.                                                                           (LS)                                  Linefeed Suppress             was issued.                                                                        (MC)                                  Remember Cursor position      display.                                                                           (Mouse Off)                                                         b. PRINT (0) (Hide Mouse Cursor)                                                   (Mouse On)                                                          b. PRINT (0) (Mouse Off)                                                           (Partial Scan Codes Off)                                            repositioned to this location with the (RC) control code.                          (Partial Scan Codes On)                                             b. PRINT (0) (Partial Scan Codes Off)                                              (RB)                                  Ring Bell                     b. PRINT (0) (Radio Button On)                                                     (RC)                                  Restore Cursor position       This example shows how to use the (RB) control code.                               (RD)                                  Roll Down                                                                                                        (RJ)                                  Right Justify mark            b. PRINT (0) (Restore Screen)                                                      (RU)                                  Roll Up                       foreground blank spaces for the data entry field.                                  (Radio Button Off)                                                  b. PRINT (0) (Partial Scan Codes On)                                               (Radio Button On)                                                   b. PRINT (0) (Radio Button Off)                                                    (Read Mouse)                                                        b. PRINT (0) (Mouse On)                                                            (Request ID)                                                        This example shows how to roll the screen display down one line.                   (Restore Screen)                                                    b. PRINT (0) (Request ID)                                                          (SB)                                  Start Background              b. PRINT (0) (Save Screen)                                                         (SF)                                  Start Foreground              b. PRINT (0) (Scan Codes Off)                                                      (SL=n)                                Skip n Lines                  repeated, causing the printer to double strike the characters.                     (SSB)                                 Start Suppressed Background      INPUT (0) DATA$                    ! wait for next keystroke                    (Save Screen)                                                       This example shows how to roll the screen display up one line.                     (Scan Codes Off)                                                    the end of the line.                                                               (Shell to DOS)                                                      cursor to "home" position.                                                         (Show Mouse Cursor)                                                 b. PRINT (0) (Read Mouse)                                                          (Show cursor)                                                       display when the screen is full.                                                   (Single Key Transmit)                                               b. PRINT (0) (Show Cursor)                                                         (Std Keyboard Off)                                                  background, the mode set just before the last three controls.                      (Std Keyboard On)                                                   This mnemonic turns off the standard keyboard mode.                                (Switch Session)                                                    This mnemonic turns on the standard keyboard mode.                                 (TM)                                  Transmit Mark                 b. PRINT (0) (Switch Session=0)  ! switch to next Comet session                    (TP)                                  Transmit Stop mark            the host computer.                                                                 (TR)                                                                This example uses the (SL=n) control code to skip 10 lines.                        (WC)                                  Write to Control line         Transmit Mark <(TM)>.                                                              (Who Has File)                                                      (Get Server Time)                                                                  (Window Title Background)                                           b. PRINT (0) (Window Title Foreground="Title line",5)                              (Window Title Foreground)                                           This example shows how to write a message to the control line.                     @(position)                                                         array.                                                                             COMMON                                                                 rather than truncated.                                                          CURPOS$                                                                <EXCP>         <PARTITION$>   <VERSION$>                                        Copyright                                                                                                                                              DATE                                                                   X = HEXDEC(SUB(A$,2,1)) - 1   ! Column value (decimal)                          DATE$                                                               day, and YY represents the last two digits of the current year.                    DAY$                                                                the clock is read.                                                                 Data Division                                                       <Index|INDEX,#HELPMTB>                                                             Data Division Statements                                            <Variable length>                                                                  ENTERLEVEL                                                          from that point on. DAY$ is an eight-byte string field.                            EXCP                                                                subprograms.                                                                       FORMAT                                The FORMAT statement          <edit-mask>                                                                        Format objects                                                      statement label INFO.                                                              HELPKEY$                                                            See <Exception Handling,#HELPMT4> for more information.                            HOME                                                                First on-line edition September 1996.                                              I/O Format Division                                                 "504.189".                                                                         ITERM$                                                                 object name + screen position + program address                                 LENGTH                                                              a common string variable called ZIPCODE$.                                          LOCAL                                                               of data.                                                                           LONGYEAR                                                            the background process.                                                            LONGYEAR$                                                           See <LONGYEAR$>.                                                                   MESSAGE$                                                            See <LONGYEAR>.                                                                    PARTITION$                                                             partition.                                                                      PRIORITY$                                                           value from "00" to "99".                                                           Printer control codes                                               <(Window Title Background)>                                                        ROUND                                                               local string variable called ZIPCODE$.                                             RUNSTATE                                                            assigned to the system variable named PRIORITY$.                                   SYSPART$                                                                         password at the security QMONITOR program.                            TERM$                                                               from "00" to "99".                                                                 TIME$                                                               the background process.!                                                           VERSION$                                                            during system configuration).                                                      Variable classification                                             <Variable classification>                                                          Variable length                                                     TESTDATA$                   TESTDATA                                               Variable names                                                      Division.                                                                          Variable types                                                      TABLE$(5,8)                 HISTORY(10,3,2)                                        Video Control Code Summary                                          product and are not covered herein.                                                Video Control Codes                                                                   123456.78-     (123,456.78)                                      Video Screen Formatting Overview                                    This feature is available in Comet 504 and greater.                                additional edit mask examples         Edit mask examples            including leading minus signs on negatively valued items.                          edit-mask                                                           PRINT (0) CUSTNUM$,@(10,5)                                                         format-item                                                            <format-item>,<length-override>,<@(position)>,<edit-mask>                       length-override                                                     etc.                                                                               system variables                      Comet system variables        in the array (i.e., they will all be rounded).                                     